Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

WiseScript somewhat running during uninstall from ARP

Updated: 22 May 2010 | 2 comments
Superfreak3's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hi all,



I have a little WiseScript custom action that is to run if our product is being removed from Add/Remove Programs. What it basically does is asks the user if he/she wants to permanently delete some config files and will do so if confirmed.



What seems to be happening is that the action is running, but the message is not being displayed. The user doesn't get the opportunity to confirm the deletions then it just goes ahead and deletes the files.



Is the confirmation message block being hidden because of the removal via ARP? Is there any way to make this message appear?

discussion Filed Under:

Comments

EdT's picture
13
Nov
2008
0 Votes 0
Login to vote

Yes, this is an aspect of wisescript that has been a PITA for many years - there is no option to set the dialog boxes to system modal, so it is easy for the dialog to get lost behind other windows and sit there waiting for the user to find it at shutdown time.



You may find it more reliable to use a bit of vbscript - the msgbox command has an attribute (4096) which makes the message box system modal - ie it appears on top of all other windows and stays there until you press one of the buttons.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Superfreak3's picture
13
Nov
2008
0 Votes 0
Login to vote

I went along the lines of vbscript in that I made a little vb.net widget that does what I need.