Quote:
Originally Posted by audiofeel
I translated it three times and didn't understand anything. after what operation do you need the browser to start from your page? after exiting the installer? on the last page?
|
I'm having trouble with the Open Setup [17.05].iss script you released; it's not creating shortcuts during my tests.
Here's my INI configuration:
Code:
[Execs]
[Execs\AppExe1]
name=Titan Quest II
exe=TQ2.exe
icon=TQ2.exe
args=TQ2_PC
workdir={app}
Is there anything wrong with this?
I also modified the `[Icons]` section, but it still doesn't create shortcuts:
Code:
[Icons]
#sub InitIcon
#define IcnSubSec ReadMInI('GetSubSection', '/MainSec=Execs /Idx=' + Str(i) + ' /RootOnly=true')
#if IcnSubSec != ""
#define IcnName ReadMInI('ReadSubString', '/MainSec=Execs /SubSec=' + IcnSubSec + ' /Key=Name')
#define IcnExe ReadMInI('ReadSubString', '/MainSec=Execs /SubSec=' + IcnSubSec + ' /Key=Exe')
#define IcnIcon ReadMInI('ReadSubString', '/MainSec=Execs /SubSec=' + IcnSubSec + ' /Key=Icon')
#define IcnArgs ReadMInI('ReadSubString', '/MainSec=Execs /SubSec=' + IcnSubSec + ' /Key=Args')
#define IcnWorkDir ReadMInI('ReadSubString', '/MainSec=Execs /SubSec=' + IcnSubSec + ' /Key=WorkDir')
Name: "{autodesktop}\{#IcnName}"; Filename: "{app}\{#IcnExe}"; IconFilename: "{app}\{#IcnIcon}"; Parameters: "{#IcnArgs}"; WorkingDir: "{app}"; Check: CreateDesktopIcons
Name: "{group}\{#IcnName}"; Filename: "{app}\{#IcnExe}"; IconFilename: "{app}\{#IcnIcon}"; Parameters: "{#IcnArgs}"; WorkingDir: "{app}"; Check: CreateGroupIcons
#endif
#endsub
#for {i = 0; i < MAX_ICONS; i++} InitIcon
#endif
Is there an error in my code?
I see the problem now.
[13:08:11.022] -- Icon entry --
[13:08:11.027] Target filename: C:\Users\Public\Desktop\Titan Quest II.lnk
[13:08:11.030] Creating icon.
[13:08:11.035] Icon successfully created.
[13:08:11.080] -- Icon entry --
[13:08:11.083] Target filename: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\(Default)\Titan Quest II.lnk
[13:08:11.087] Creating directory: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\(Default)
But how to fix it?
Code:
[Setup]
; Add this line to explicitly define the Start Menu folder name
DefaultGroupName=Game\{#ReadMInI('ReadString', '/Sec=Setup /Key=Path')}
[Icons]
; Fix: Use {userdesktop} instead of {autodesktop}
Name: "{userdesktop}\{#IcnName}"; Filename: "{app}\{#IcnExe}"; IconFilename: "{app}\{#IcnIcon}"; Parameters: "{#IcnArgs}"; WorkingDir: "{app}"; Check: CreateDesktopIcons
Name: "{group}\{#IcnName}"; Filename: "{app}\{#IcnExe}"; IconFilename: "{app}\{#IcnIcon}"; Parameters: "{#IcnArgs}"; WorkingDir: "{app}"; Check: CreateGroupIcons
#endif
#endsub
#for {i = 0; i < MAX_ICONS; i++} InitIcon
#endif
This modification should be correct, right?
It workit!
Warning: The "[Setup]" section directive "PrivilegesRequired" is set to "admin," but the script uses the per-user area (userdesktop). Regardless of the Windows version, if the installation is running in administrative install mode, be cautious when making any changes to the per-user area: these changes may not achieve your intended effect. For more information, see the "UsedUserAreasWarning" topic in the help file.