Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Using the Windows installer project to activate a executable at the end of the installation
 

Using the Windows installer project to activate a executable at the end of the installation

sorry for posting in the wrong forum..coud the find the apt place.

Am trying to create a windows installer for my project.
I need to run the silverlight installation automatically after the end ofmy projectinstallation.

I tried using the custom actions menu by adding the silverlight exe in the INSTALL as well as COMMIT options.
It does invoke the exe but when i try to install the silverlight, it does not get installed as my project installation is currently running.

any help will be highly apppreciated.
spskumar  Thursday, September 03, 2009 9:57 PM
Hello Sakti,

Thanks for your post on MSDN.

>I tried using the custom actions menu by adding the silverlight exe in the INSTALL as well as COMMIT options.

It is not allow to start another MSI package installation within a Custom action. Most likely, silverlight exe doesn't contian the implementation of the Installer class, so you should not add custom action like that.

If you don't mind starting the silverlight installation before installing your application, I would like to suggest you create a bootstrapper to install silverlight and then install your application. You can create a customprerequisite for the silverlight, and then add the silverlight prerequisite to your setup project.

More infomation about create a custom prerequisite
http://code.msdn.microsoft.com/bmg

More info about Custom action
http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Friday, September 04, 2009 4:01 AM
Hello Sakti,

Thanks for your post on MSDN.

>I tried using the custom actions menu by adding the silverlight exe in the INSTALL as well as COMMIT options.

It is not allow to start another MSI package installation within a Custom action. Most likely, silverlight exe doesn't contian the implementation of the Installer class, so you should not add custom action like that.

If you don't mind starting the silverlight installation before installing your application, I would like to suggest you create a bootstrapper to install silverlight and then install your application. You can create a customprerequisite for the silverlight, and then add the silverlight prerequisite to your setup project.

More infomation about create a custom prerequisite
http://code.msdn.microsoft.com/bmg

More info about Custom action
http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Friday, September 04, 2009 4:01 AM

Hello Sakti,

I am writing to check the status of the issue on your side. Would you mind letting me know the result of the suggestions? If you have any additional question, welcome to post here.

Have a great day!

Thanks,
Rong-Chun Zhang


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Tuesday, September 08, 2009 10:15 AM

You can use google to search for other answers

Custom Search

More Threads

• Dialog Editor for Windows application setup Project
• setup file for visual studio.net
• Setup project - Odd behavior once installed
• Visual Studio 2005 Windows Installer Custom Actions
• Running different versions of the same app on one client machine
• Creating a setup Project with custom SQL script and dll
• clickonce certificat ended
• Urgent: Mage.exe Issue with -RequiredUpdate
• 64-bit setup project
• ClickOnce and .Net Client Profile