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?

0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer

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
Answered 08/04/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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!

Answered 08/04/2005 by: jonasm
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity