Page 1 of 1

How and where to cache the setup.exe for all users

Posted: Sat Jan 27, 2024 9:56 pm
by RonSie
I switched from Installshield to actual installer and don't know how to convert a working installshield setup to actual installer.
Certain files must be saved in the ProgramFileFolder for all users. This is not a problem.
In addition, files must be stored in the user-specific AppDataFolder.
If a user account is set up later or a user other than the one who installed the program logs in for the first time, the user-specific files must also be automatically installed in the AppDataFolder.

In Installshield I solve the problem as follows.
  • Files and Folders -> [AppDataFolder]->[Appname]-[] user-specific files
    Files and Folders -> ProgramFilesFolder-> one file for all.
  • Registry->HKLM->SOFTWARE->Microsoft->Active Setup->Installshield Components->[ProductCode]
    • Default->[ProductName]
    • StubPath->msiexec /fou [ProductCode] /qb
    • Version>1,0,4
  • Releases->Setup.exe
    • Cache MSI Locally -> Yes
    • Cache Path -> [CommonAppDataFolder]xxxx
That works really well. If another user logs in, the system does not ask for the Setup.exe and installs the missing user-specific files without asking.
Thank you for your support.

Re: How and where to cache the setup.exe for all users

Posted: Tue Jan 30, 2024 7:00 am
by Leo
Hi,

Go to the General / Parameters page, and in the "Install Product for" dropdown list select "All Users".
Go to the Installation / Files and Folders page:
In the Source Directory, specify a folder that must be installed for All Users in the Program Files folder (in InstallShield "ProgramFileFolder").
In the Installation Directory, specify: <ProgramFiles>\<AppName>

To install additional files in the User's AppData folder, click Add Files/Add Folder, and select files/folder.
Then in the new dialog, in the Destination Folder field specify <AppData>
If a user account is set up later or a user other than the one who installed the program logs in for the first time, the user-specific files must also be automatically installed in the AppDataFolder.
For this purpose, I recommend you to copy files to the ProgramData folder, varaible <CommonAppData>

To add registry values, go to the System / Registry. Use the Reg Key:
HKLM\SOFTWARE\Microsoft\Active Setup\Installshield Components\[ProductCode]
For [ProductCode] you may use the variable <ProductGUID>

Cashing the setup executable is not supported.

Re: How and where to cache the setup.exe for all users

Posted: Wed Jan 31, 2024 12:44 am
by RonSie
Sometimes it is necessary for the admin to carry out the installation and save files in the corresponding user folders. Are you planning to add this feature? See https://nsis.sourceforge.io/Create_sett ... orkstation

Re: How and where to cache the setup.exe for all users

Posted: Wed Jan 31, 2024 5:36 am
by Leo
We'll consider this feature.
Thank you.