Skip to content

Instantly share code, notes, and snippets.

@mistic100
Created August 9, 2014 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistic100/23fa869b003e71c1aa1a to your computer and use it in GitHub Desktop.
Save mistic100/23fa869b003e71c1aa1a to your computer and use it in GitHub Desktop.
[InnoSetup] Delete installer on next startup
[Code]
// mark installer for deletion if argument "-delete-installer" is present
procedure DeinitializeSetup();
var i: integer;
begin
for i:= 0 to ParamCount do
begin
if ParamStr(i) = '-delete-installer' then
begin
RestartReplace(ExpandConstant('{srcexe}'), '');
end;
end;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment