@@ -6,15 +6,15 @@ AppPublisher={{PUBLISHER_NAME}}
66AppPublisherURL = {{PUBLISHER_URL}}
77AppSupportURL = {{PUBLISHER_URL}}
88AppUpdatesURL = {{PUBLISHER_URL}}
9- DefaultDirName = {code:GetDefaultDir }
9+ DefaultDirName = {{INSTALL_DIR_NAME} }
1010DisableProgramGroupPage = yes
1111OutputDir = .
1212OutputBaseFilename = {{OUTPUT_BASE_FILENAME}}
1313Compression = lzma
1414SolidCompression = yes
1515SetupIconFile = {{SETUP_ICON_FILE}}
1616WizardStyle = modern
17- PrivilegesRequired = lowest
17+ PrivilegesRequired = {{PRIVILEGES_REQUIRED}}
1818CloseApplications = yes
1919CloseApplicationsFilter = *.exe
2020[Languages]
@@ -58,29 +58,4 @@ Name: "{autoprograms}\\{{DISPLAY_NAME}}"; Filename: "{app}\\{{EXECUTABLE_NAME}}"
5858Name : " {autodesktop}\\{{DISPLAY_NAME}}" ; Filename : " {app} \\{{EXECUTABLE_NAME}}" ; Tasks: desktopicon
5959Name : " {userstartup}\\{{DISPLAY_NAME}}" ; Filename : " {app} \\{{EXECUTABLE_NAME}}" ; WorkingDir : " {app} " ; Tasks: launchAtStartup
6060[Run]
61- Filename : " {app} \\{{EXECUTABLE_NAME}}" ; Description : " {cm:LaunchProgram,{{DISPLAY_NAME}}}" ; Flags : {% if PRIVILEGES_REQUIRED == ' admin' %}runascurrentuser {% endif %} nowait postinstall skipifsilent
62-
63- [Code]
64- function GetDefaultDir (Param: String): String;
65- var
66- DriveLetter: String; { Changed from Char to String }
67- DrivePath: String;
68- FoundDrive: Boolean;
69- begin
70- FoundDrive := False;
71- Result := ' ' ;
72- for DriveLetter := ' D' to ' Z' do
73- begin
74- DrivePath := DriveLetter + ' :\' ; { Both sides are now Strings }
75- if DirExists(DrivePath) then
76- begin
77- Result := DrivePath + ' {{INSTALL_DIR_NAME}}' ;
78- FoundDrive := True;
79- Break;
80- end ;
81- end ;
82- if not FoundDrive then
83- begin
84- Result := ExpandConstant(' {localappdata}\' ) + ' {{INSTALL_DIR_NAME}}' ;
85- end ;
86- end ;
61+ Filename : " {app} \\{{EXECUTABLE_NAME}}" ; Description : " {cm:LaunchProgram,{{DISPLAY_NAME}}}" ; Flags : {% if PRIVILEGES_REQUIRED == ' admin' %}runascurrentuser {% endif %} nowait postinstall skipifsilent
0 commit comments