Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Windows Installer Deployment
 

Windows Installer Deployment

I have developed an application in VB.Net and I now wantto deploy it using the Windows installer. I have everything working except that I would like the user to be able to define their own folder in the Start/Programs menu. I have a default and have looked through the File System and User Interface editors. I have included a Usser Interface Text Dialog box to my installation script so the user can define their Program Menu folder or just select the default.

I cannot get this to work. I have attempted to use the System folder properties withthe custom folder in the File System section of my deployment project but all the install attempts to do is look for a network folder with the name entered by the user.

If someone knows how to do this or knows where I could find some great examples, I would appreciate the help.

Tony

awperli  Tuesday, January 30, 2007 10:49 PM

Probably the best way to do this will be to add a Custom Folder and set the TargetLocation to be [ProgramMenuFolder][USERSFOLDER]. Then, on the command line run

msiexec /i mysetup USERSFOLDER=aTestFolder

The thing that we can't do very well is get this through the UI. The problem is that we evaluate and resolve the NEWPROPERTY1 (the default property for the folder path) before we go through the UI sequence. If you wanted to be a bit bold, you could modify the built .MSI after it's built to add or move the NEWPROPERTY1 evaluation custom action to after the custom dialog in the UI Sequence. That might work, and if it does, you can build a script to reun on PostBuild to automatically fix it.

I hope that helps a bit.

David Guyer MSFT  Wednesday, January 31, 2007 7:29 AM

Just a minor comment - I haven't seen an install for years that let the user choose thestart menu program group. It's one of those things that is less necessary now.

PhilWilson  Wednesday, January 31, 2007 8:26 PM

You can use google to search for other answers

Custom Search

More Threads

• App Setup and desktop shortcut icon
• BootStraper Mainfest Generator - Check if a specific version of an application is installed
• How do I sign a CAB file?
• ClickOnce doesn't work on some machines
• Creating Automatic updates in setup and deployment project!
• Oracle ODP.Net Problem with Once Click
• Access list of files in MSI in custom action
• Deployment designed shortcut not pointing to the actual assembly
• how to: update a webform application from the web
• Prerequisites Box