I upgraded Inno Setup to 5.6.0 and now when I compile I get warning:
Warning: The [Setup] section directive "PrivilegesRequired" is set to "admin" but per-user areas (HKCU,userappdata,userdesktop) are used by the script. Regardless of the version of Windows, if the installation is administrative then you should be careful about making any per-user area changes: such changes may not achieve what you are intending. See the help file for more information.
I understand what it is saying. In the [icons]
section I have:
Name: "{userdesktop}\Meeting Schedule Assistant"; \
Filename: {app}\MeetSchedAssist.exe; \
Tasks: desktopicon;
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Meeting Schedule Assistant"; \
Filename: {app}\MeetSchedAssist.exe; \
MinVersion: 4,4; \
Tasks: quicklaunchicon;
I think "back in the day" these were created by a script wizard. Now it is true that my installer is running with PrivilegesRequired
. And all of the data files get installed to ProgramData
folder. When the program starts it looks for any missing files and gets them from this common location.
So, the only issues pertain to these two shortcuts. What is the right way to cater for shortcuts? Since under normal circumstances the installer will add the shortcuts.