
priyankajain171.5524892846598762E12 asked a question.
Run a Custom Action
Hi everybody!!!! :)
I'm new to this community as well as to InstallShield. Can anybody help me with defining custom actions :
1. I need to run a VB Script as a custom action by calling it and not embedding it. this Vb Script creates a new folder. What should be the respond options and where should i place it in the sequence?
2. I also need to run a vbscript to delete the folder when i uninstall this folder. I've no idea to go about this how to go about it:( .
3. Also can anybody tell me the difference between embedding the VbScript in InstallScript and Calling the script. Which one is prefferred ann pros ad cons of both.
Thanks in advance...
In InstallScript MSI, you can either use the MSI tables or you can create and remove a folder using InstallScript, again without using VBScript custom actions. In my opinion, using the inbuilt MSI tables is a better solution.
As for the delete folder business you need to look into the removefile table.
http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx
Specifying no files will remove the folder instead. But be warned you need another entry to remove the files too