Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Custom step in a setup project
 

Custom step in a setup project

Hi all,
VisualStudio 2003.
I wrote a vb.net application anda project to deploy it.
I need to show a dialog (after the welcome page) that asks a code: ifthe code is contained in a set of codes, i have to copy a file (1 different file for each known code) but if the code is empty or unknown the installer must stop with a message.

I added a TextBoxes(A) dialog with one textbox visible but now i don't how to handle the text on the property to decide how to proceed to the next steps.

Any help?
Thanks
SteM
SteMMo  Friday, December 19, 2008 8:45 AM
Hi SteMMo,

After doing more research on this issue, I find that it's possible to add a custom dialog in an MSI package created by Visual Studio. To do this, you need to use the tool Orca. The following is a sample introducing how to do it:

"Create custom dialogs for use in your Visual Studio Setup projects"
https://secure.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?display=PrintAll&fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2817377&fr=1

Hope this helps.

Sincerely,
Linda Liu
  • Marked As Answer bySteMMo Tuesday, December 30, 2008 1:50 PM
  •  
Linda Liu  Monday, December 29, 2008 2:20 PM
Hi SteMMo,

What tool are you using to generate the MSI package?

In your scenario, you'd like to add a dialog in the MSI package but Visual Studio doesn't provide such a function. So if you're using Visual Studio to create the MSI package,you need to use other professional MSI file authoring tool, e. g. InstallShield, to create the MSI package.

It should be simple to add a custom dialog in an MSI file using InstallShield.

Hope this helps.

Sincerely,
Linda Liu
Linda Liu  Monday, December 22, 2008 6:32 AM
Til now I used Visual Studio 2005 Setup project.
I was able to add a Textboxes dialog and read relative properties, writing them on the registry.

But I' d like to show a MessageBox or similar right after the input of the text or after the 'Next' button.

I'm not sure it is possible with this kind of project.

Thanks

SteM
SteMMo  Monday, December 29, 2008 10:05 AM
Hi SteMMo,

After doing more research on this issue, I find that it's possible to add a custom dialog in an MSI package created by Visual Studio. To do this, you need to use the tool Orca. The following is a sample introducing how to do it:

"Create custom dialogs for use in your Visual Studio Setup projects"
https://secure.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?display=PrintAll&fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2817377&fr=1

Hope this helps.

Sincerely,
Linda Liu
  • Marked As Answer bySteMMo Tuesday, December 30, 2008 1:50 PM
  •  
Linda Liu  Monday, December 29, 2008 2:20 PM

You can use google to search for other answers

Custom Search

More Threads

• Setup & Deployment Project - Cannot launch another installation
• Increment Version Number automatically
• VS 2005 Publish SignTool error
• Packing ClickOnce application in Installer Setup
• Can the Confirm Installation Dialog Be Customized?
• ClickOnce - Same Version App In Different Deployment Locations With Different Configs - Can't Get Two Copies Installed on Client
• self exatacting exe setup project
• Error - System.IO.FileNotFoundException When text with Spaces entered in Custom User Interface
• Access violation in dfsvc.exe doing ClickOnce
• Where is the Publish tab?