Self Repair - Change parameters??
Hi everyone!
Does anyone know if there is any way to change the parameters running when Windows Installer repairs a package?
We deploy packages using SMS-server, running it with parameter /q, so the user don't see any UI.
Some applications are self repairing settings in for example HKCU, but when the package self repairs some users keeps pressing "Cancel" in the Windows Installer process.
Some applications are not working at at all if they don't get repaired, and the annoyed users starts calling the helpdesk, yelling about there applications that not work.
Any ideas if there is any way to change the command line parameters?
/Jonas
Does anyone know if there is any way to change the parameters running when Windows Installer repairs a package?
We deploy packages using SMS-server, running it with parameter /q, so the user don't see any UI.
Some applications are self repairing settings in for example HKCU, but when the package self repairs some users keeps pressing "Cancel" in the Windows Installer process.
Some applications are not working at at all if they don't get repaired, and the annoyed users starts calling the helpdesk, yelling about there applications that not work.
Any ideas if there is any way to change the command line parameters?
/Jonas
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
WiseUser
19 years ago
Great question!! Well worth the two points I just awarded it.
I would use the "Message" method of the "Session" object.
Embed the following VBScript at the very top (beginning) of the "InstallExecuteSequence" ("Execute Immediate").
Dim oRecord
Const msiMessageTypeCommonData = 184549376
Set oRecord = Installer.CreateRecord(2)
With oRecord
.IntegerData(1) = 2
.IntegerData(2) = 0
End With
Message msiMessageTypeCommonData, oRecord
Set oRecord = Nothing
I would use the "Message" method of the "Session" object.
Embed the following VBScript at the very top (beginning) of the "InstallExecuteSequence" ("Execute Immediate").
Const msiMessageTypeCommonData = 184549376
Set oRecord = Installer.CreateRecord(2)
With oRecord
.IntegerData(1) = 2
.IntegerData(2) = 0
End With
Message msiMessageTypeCommonData, oRecord
Set oRecord = Nothing
Posted by:
jonasm
19 years ago
Thank you very much for your reply, 2 points for you too!
Now when I got your advice, I found a MS-article about it at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/hiding_the_cancel_button_during_an_installation.asp
Thanks again!
/Jonas
Now when I got your advice, I found a MS-article about it at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/hiding_the_cancel_button_during_an_installation.asp
Thanks again!
/Jonas
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.