/build/static/layout/Breadcrumb_cap_w.png

Need some insight on custom actions

I just started at a job with an GPO deployment environment. The tool provided for me is installshield 6. I'm trying to learn more about custom actions in an msi since i previously never had a need for it (we used wisescripts instead.) I ordered a book on it from amazon, but it will be 3 weeks until I get it.

My questions revolve around running an exe from a custom action:

- I gather that I can run an executable from a custom action. Would it be possible in theory to build an install that installs all files plus a wisescript to alter system settings, and then run that wisescipt? (wisescript would be an exe)

- Is this sequence of events correct? Add an .exe to the files in an msi, create a custom action to run it, place the custom action in the appropriate sequence?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
You can indeed run an exe from a custom action. The executable may be installed by your MSI (type 18), it may already exist on the system (type 50), or it may be embedded in the binary table stream (type 2).

This all depends on the type of custom action that you use - see the following link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/summary_list_of_all_custom_action_types.asp

The book you've ordered may be a good one, but the best reference will always be the SDK.

http://msdn.microsoft.com/library/en-us/msi/setup/windows_installer_start_page.asp

As for modifying "system settings", try to use the MSI tables where possible - custom actions should only be used as a last resort. Having said this, you often come across "vendor" MSI files with whole application setups embedded in the binary stream!
Posted by: Bladerun 19 years ago
Green Belt
0
Excellent info. And that link is EXACTLY what I've been looking for. I didn't think a resource on that existed online.

Thanks.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ