Closed Aaswin1996 closed 3 months ago
The MSI session and its transactional nature are the responsibility of MSI runtime. So your user actions should only trigger the input for the runtime like "user requested exit". And then the runtime will ensure the rollback is executed.
Thus I would not try to execute rollback but only use the existing mechanisms (e.g. Cancel button) .
Though I cannot exclude that there is a way to do what you ask. I just do not know
@oleg-shilo While we are trying to cancel an ongoing installation using the cancel button the rollback is failing with this error :
MSI (s) (70:4C) [19:03:06:780]: Error in rollback skipped. Return: 3 MSI (s) (70:4C) [19:03:06:781]: Executing op: RegOpenKey(Root=-2147483645,Key=S-1-12-1-3524205167-1077887235-3177422527-2638052887\Software\Microsoft\Installer\Products\AAB6844C287B0004F8D38CF4BFC13FA4\SourceList\Media,SecurityDescriptor=BinaryData,BinaryType=1,,) MSI (s) (70:4C) [19:03:06:783]: Executing op: RegRemoveValue(Name=240,Value=;,) MSI (s) (70:4C) [19:03:06:783]: Note: 1: 1402 2: HKEY_USERS\S-1-12-1-3524205167-1077887235-3177422527-2638052887\Software\Microsoft\Installer\Products\AAB6844C287B0004F8D38CF4BFC13FA4\SourceList\Media 3: 5 Info 1403. Could not delete value 240 from key \S-1-12-1-3524205167-1077887235-3177422527-2638052887\Software\Microsoft\Installer\Products\AAB6844C287B0004F8D38CF4BFC13FA4\SourceList\Media. System error . Verify that you have sufficient access to that key, or contact your support personnel. MSI (s) (70:4C) [19:03:06:784]: Executing op: RegCreateKey()
We have a dual purpose MSI (both per user and per machine ) .Any pointers ? Installation is per user type
@Aaswin1996, Not sure what is happening there.
If I click on cancel in the progress Dialog (WPF) the installer installs the application and then runs the rollback script .I want it to run the rollback immediately after I Click on cancel .
My Progress Dialog :