Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Installing driver and service, and rebooting, through VS 2005 setup project
 

Installing driver and service, and rebooting, through VS 2005 setup project

The application I need to build an .msi for has application, driver, and service pieces. The installation must also involve a reboot. I've got most of the project working by using "custom actions" for the service and driver pieces. Windows installer documentation seems to indicate that it can deal with the service and reboot easily, but I don't see how to do this through the VS 2005 setup project.

Do I have to use custom actions for all this?

knokej  Friday, August 24, 2007 8:01 PM

Windows Installer can install services with its built-in functionality, butVisual Studio setup projects don't provide IDE support for that, so you use custom actions with installer classes instead.

There's also a standard action ScheduleReboot that you can add to the install execute sequence wit a condition of 1 to cause the install to prompt for a reboot at the end, but that's not supported either, so you'd need to use Orca to edit the MSI file.

Looking at the Windows Installer documentation won't help in many cases because Visual Studio setup projects don't have IDE support for many of its capabilities.

PhilWilson  Tuesday, August 28, 2007 9:27 PM

Windows Installer can install services with its built-in functionality, butVisual Studio setup projects don't provide IDE support for that, so you use custom actions with installer classes instead.

There's also a standard action ScheduleReboot that you can add to the install execute sequence wit a condition of 1 to cause the install to prompt for a reboot at the end, but that's not supported either, so you'd need to use Orca to edit the MSI file.

Looking at the Windows Installer documentation won't help in many cases because Visual Studio setup projects don't have IDE support for many of its capabilities.

PhilWilson  Tuesday, August 28, 2007 9:27 PM
I've generally got some custom actions and Orca working, but I'm trying to convert over a few more things from an old InstallShield script (Setup.rul). Does converting some snippets of Setup.rul to .vbs custom actions seem reasonable?

What is the purpose/effect of setting "installer class" on a custom action?

Thanks!
knokej  Tuesday, August 28, 2007 10:41 PM

You can use google to search for other answers

Custom Search

More Threads

• How to set all user installation?
• Launch Simple Managed EXE After Install.
• How to get "just me" or "everyone" option in deployment proejct?
• Problem with Shortcuts
• Click Once Application - Deploy Icon and Desktop Shortcut?
• System.Runtime.InteropServices.COMException (0x80040112)
• Need help determaining Vista OS during a VS2005 .msi deployment
• Can't Create Deployment project
• ClickOnce Deployment Provider URL
• System.Deployment.Application.DeploymentDownloadException (sous-type inconnu)