I want to add one or more of the applications installed with my installer to start automatically when the user logs on.
One alternative is to add to the startup folder, which was easily available in Wise for Windows Installer. I am not able to find that target in IA, though. Rumours say that the eyes are the first to suffer from blindness
There is also a possibility to add to the HKCU\\Software\\microsoft\\Windows\\CurrentVersion\\Run.
What is the recommended way to achieve this?
if Variable ALLUSERS Equals TRUE
Set Variable SHORTCUTFOLDER to $SHORTCUTFILESALL$\\$STARTMENU$
else
Set Variable SHORTCUTFOLDER to $SHORTCUTFILES$\\$STARTMENU$
end
change that code for the following code that contains two more lines:
if Variable ALLUSERS Equals TRUE
Set Variable SHORTCUTFOLDER to $SHORTCUTFILESALL$\\$STARTMENU$
Get Common Folder Location Start Menu->Startup Group into STARTUPDIR
else
Set Variable SHORTCUTFOLDER to $SHORTCUTFILES$\\$STARTMENU$
Get Folder Location Start Menu->Startup Group into STARTUPDIR
end
After that, use the "Create Shortcut" command with $STARTUPDIR$ as "Link Location"
I hope that was helpful
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/