Changeset 891
- Timestamp:
- 04/26/09 11:44:24 (4 years ago)
- File:
-
- 1 edited
-
trunk/bin/Eraser.iss (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Eraser.iss
r886 r891 43 43 44 44 [_ISTool] 45 EnableISX=true :45 EnableISX=true 46 46 47 47 [Files] … … 127 127 Root: HKCU; SubKey: Software\Microsoft\Windows\CurrentVersion\Run; ValueType: string; ValueName: Eraser; ValueData: {app}\eraser.exe -hide; Flags: dontcreatekey uninsdeletevalue 128 128 129 [UninstallDelete]130 Name: {app}\*.*; Type: filesandordirs131 132 129 [Run] 133 130 Filename: {app}\eraser.exe; WorkingDir: {app}; Flags: postinstall nowait skipifsilent; Description: Run Eraser … … 138 135 function IsWin32: Boolean; 139 136 begin 140 Result := not IsWin64;137 Result := not IsWin64; 141 138 end; 139 140 procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); 141 var 142 DeletedAppData: Boolean; 143 DeletedRegKeys: Boolean; 144 EraserAppDataPath: String; 145 EraserRegistryPath: String; 146 begin 147 if (CurUninstallStep = usUninstall) then 148 begin 149 EraserAppDataPath := ExpandConstant('{localappdata}') + '\Eraser'; 150 EraserRegistryPath := 'Software\Heidi Computers Ltd'; 151 if (MsgBox('Do you want to delete Eraser''s configuration files?' + #13#13 + 152 'Do not do this if you intend to reinstall Eraser.' , mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES) then 153 begin 154 DeletedAppData := (not FileExists(EraserAppDataPath)) or DelTree(EraserAppDataPath, True, True, True); 155 DeletedRegKeys := (not RegKeyExists(HKEY_CURRENT_USER, EraserRegistryPath)) or RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, EraserRegistryPath); 156 if not (DeletedAppData and DeletedRegKeys) then 157 begin 158 MsgBox('Could not delete user configuraion files and entries:' #13#13 + SysErrorMessage(DLLGetLastError), mbError, MB_OK); 159 end; 160 end; 161 end; 162 end;
Note: See TracChangeset
for help on using the changeset viewer.
