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

Common questions about using Actual Installer.
Post Reply
RonSie
Posts: 2
Joined: Wed Jul 05, 2023 12:57 am

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

Post 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.
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

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

Post 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.
Leo,
Actual Installer Team
https://www.actualinstaller.com
RonSie
Posts: 2
Joined: Wed Jul 05, 2023 12:57 am

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

Post 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
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

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

Post by Leo »

We'll consider this feature.
Thank you.
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply