Link to home
Start Free TrialLog in
Avatar of Rick Becker
Rick BeckerFlag for United States of America

asked on

How to Re-Run the Setup Wizard in Visual Studio 2017 in order to include more Files/Folders for deployment

Greetings.... OK maybe a somewhat embarrassing question...

I am New to Visual Studio 2017 and all of it's nice new features. I have started on VB.NET a program/application and got some of the functionality done. I wanted to make sure that I could 'Deploy' the  program easily so I installed the 'Installer' package into VS 2017. I was successful in getting an .msi package created and working. (everything worked).

I have since continued to work on the Main program and in the process have created Files and Folders that need to be deployed along with all other executables and libraries..

Here is the embarrassing part,,, how do I RE-RUN the Setup Wizard in VS2017 so that I can add all the files and folders. I have done a lot of Google searches and have even searched EE but apparently I am "asking the wrong question" because so far I not found an information on how RE-RUN/REBUILD the Install package.

Please forgive me, I know there is probably an easy answer but so far it has eluded me...

Rick
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi Rick,

If you need to add new files / folder to your setup program (the msi), you do that by using the File Editor section of the Installer project (select the Installer project in the Solution Explorer and you'll see the File Editor icons across the top, along with the Registry Editor icon). This is where you add the files / folders and choose what gets included in your msi, and where they're installed to. Then you just re-build the Installer project and it will regenerate the msi - right-click on the Installer and choose Build (or Re-Build)
Avatar of Rick Becker

ASKER

Hi thanks for the quick reply but I am confused and still having trouble... When I right-ckick on the installer solution the 'Add' button wants me to Create a new File or Folder. I have the Files and Folders already created and under the 'Release' Folder of the 'Main' solution. Is there a way to drag and drop the folder onto the installer solution or do I actually have to create them with the 'right-click Function?
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Chris...

Ahhh Ok ...

 Got it.. I did get them in place and  I have created a new MSI file. I will have to wait until tomorrow to test the 'Deployment' process. Also I have save copies of my file and folders just in case I accidentally overwrite them... thanks for the quick response and help..

Rick
No worries Rick. Glad I could help.

A quick tip. Once you've built the MSI, you can right-click on the Installer project and select Install, and that will install all the files from the msi into the correct place. You can also right-click and select uninstall to roll it back. Quick and easy way to test that the deployment files go where they're supposed to.