-
Getting User Selection from Session.Message
Hi,
I am writing a VB custom action to get the user input, say yes/no or OK/Cancel. I am using Session.Message. How can we get the user action [ which button clicked ]
My code is shown below
Set hMsgRecord = Installer.CreateRecord(0)
hMsgRecord.StringData(0) = 'do u want to close?'
Session.Message &H01000034, hMsgRecord
In above 3 line code, if I assign Session.Message to a variable say,
X=Session.Message &H01000034, hMsgRecord
then, MSI installer gives an error.
Error Reads like
"Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action ShowUninstallInformationDlg script error ..."
If I try MsgBox, then it goes behind the installer screen in case of Win 7 which is not a solution for me.
Any help appreciated.
Thanks and Regards
Salila
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules