Use auto constants to handle non administrative install mode.
This commit is contained in:
parent
a82e9d6b03
commit
e493773805
14
dist/win/inno/valentina.iss
vendored
14
dist/win/inno/valentina.iss
vendored
|
@ -31,7 +31,7 @@ AppPublisher={#MyAppPublisher}
|
||||||
AppPublisherURL={#MyAppURL}
|
AppPublisherURL={#MyAppURL}
|
||||||
AppSupportURL={#MyAppURL}
|
AppSupportURL={#MyAppURL}
|
||||||
AppUpdatesURL={#MyAppURL}
|
AppUpdatesURL={#MyAppURL}
|
||||||
DefaultDirName={commonpf}\{#MyAppName}{#MyAppStatus}
|
DefaultDirName={autopf}\{#MyAppName}{#MyAppStatus}
|
||||||
DefaultGroupName={#MyAppName}{#MyAppStatus}
|
DefaultGroupName={#MyAppName}{#MyAppStatus}
|
||||||
LicenseFile={#buildDirectory}\LICENSE_GPL.txt
|
LicenseFile={#buildDirectory}\LICENSE_GPL.txt
|
||||||
OutputDir={#buildDirectory}
|
OutputDir={#buildDirectory}
|
||||||
|
@ -238,17 +238,17 @@ Source: "{#buildDirectory}\*.ini"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
[InstallDelete]
|
[InstallDelete]
|
||||||
Type: filesandordirs; Name: "{app}\translations"
|
Type: filesandordirs; Name: "{app}\translations"
|
||||||
Type: files; Name: "{userappdata}\ValentinaTeam\*.ini"; Tasks: deletesettings
|
Type: files; Name: "{autoappdata}\ValentinaTeam\*.ini"; Tasks: deletesettings
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"
|
Name: "{group}\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"
|
||||||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}{#MyAppStatus}}"; Filename: "{uninstallexe}"
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}{#MyAppStatus}}"; Filename: "{uninstallexe}"
|
||||||
Name: "{group}\Tape"; Filename: "{app}\tape.exe"
|
Name: "{group}\Tape"; Filename: "{app}\tape.exe"
|
||||||
Name: "{group}\Puzzle"; Filename: "{app}\puzzle.exe"
|
Name: "{group}\Puzzle"; Filename: "{app}\puzzle.exe"
|
||||||
Name: "{commondesktop}\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"; Tasks: desktopicon
|
Name: "{autodesktop}\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"; Tasks: desktopicon
|
||||||
Name: "{commondesktop}\Tape"; Filename: "{app}\tape.exe"; Tasks: desktopicon
|
Name: "{autodesktop}\Tape"; Filename: "{app}\tape.exe"; Tasks: desktopicon
|
||||||
Name: "{commondesktop}\Puzzle"; Filename: "{app}\puzzle.exe"; Tasks: desktopicon
|
Name: "{autodesktop}\Puzzle"; Filename: "{app}\puzzle.exe"; Tasks: desktopicon
|
||||||
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"; Tasks: quicklaunchicon
|
Name: "{autoappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}{#MyAppStatus}"; Filename: "{app}\valentina.exe"; Tasks: quicklaunchicon
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: "{app}\valentina.exe"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\valentina.exe"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
@ -657,7 +657,7 @@ begin
|
||||||
if MsgBox(ExpandConstant('{cm:QuestionRemoveAnyExistingSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then
|
if MsgBox(ExpandConstant('{cm:QuestionRemoveAnyExistingSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then
|
||||||
//this is the msg that will display after uninstall
|
//this is the msg that will display after uninstall
|
||||||
begin
|
begin
|
||||||
DelTree(ExpandConstant('{userappdata}\ValentinaTeam'), True, True, True);
|
DelTree(ExpandConstant('{autoappdata}\ValentinaTeam'), True, True, True);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user