Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Studio Installer Disallow User Insatall Location

Status
Not open for further replies.

DK47

Programmer
Jun 3, 2003
118
US
I have recently switched from the VB Installer program to the Visual Studio Installer. It offers many options that VB does not.
The most compelling reason was the ability to have the program install on the user's machine in the directory of your choosing. This insures that the connection strings written into the code will find the files, such as data bases for local connections.

Now, becuase I want the program installed in a specific location, I don't want the installer program to give the user the option of installing somewhere else.

Ihave tried changing this option using the drop down menu
Project.........UserInterface....Select Installation Folder.......Show Volumn List....False

After building the install package with these settings the install program still gives the user the Installation Location Option????

Any ideas on how to remove that option will be greatly appreciated.

Thanks,
Dwight
 

Not with the Visual Studio Installer but for something like this it is easy enough to modify the VB setup program.

Please make a copy of this project before you start to work on any files.

In frmBegin set the command button cmdChDir to false.

Good Luck

 

Ahh ... thats the visible property you need to set to false ...

Good Luck

 
> Visual Studio Installer for Windows Installer

In the User Dialog interface, why don't you just remove (delete) the Dialog to select the Installation folder?

You can also do this, or almost anything you desire) by changing the MSI installation file, once created. You will need ORCA for this in order to open the MSI database (download from MS). But it is something that you will need to study up on and learn all the sections, properties, methods, etc, etc., and needs to be done after each new creation of the MSI file. Better would be to use a program like WISE or ActiveInstall, or any other which have an IDE similar to VSI which can create Windows Installer MSI packages - they have more options available through the IDE.
 
CCLINT and vb5,

Your help is very much appreciated.
I intend to put both of your responses into my VB6 helpful info directory. (Where I save help from all you wonderful people for review and use)

CCLINT,
After I left this post yesterday I went into the VSI program again and found out that by double clicking the User Interface in the Project Explorer a user interface dialog box appears. Under Install Dialogs, expanding the Start Icon will display Select Installation Folder. Right click it and choose Delete.
This can also be done in the Network Installation.

One quirk I found with this is that for some reason the Tasks list will display a series of errors and the program does not compile if the procedure is done later than the first step in preparing the install.
IE I tried it on a project already complied, used the rebuild after deleting the SelectInstallation Folder and the program did not compile. The standard directory was created but instead of the insatll .msi file a .tmp file was left there.

I went back and complied the project from scratch, deleting the referred to file first, completed the procedures and to my elation, the progam.msi was created and the program installed without giving the user an option to install in an alternate drive or dirctory.

Note to anyone reading this: I did not throughly test why the install failed to work the first time and why it worked after I started from scratch. It may just have been a quirk or it may be required to remove the folder first.

If anyone out there knows more about this it would be great if a faq could be written on it since the VSI is being used more and more by VB6 programmers.

Thanks Again to all that helped.
Dwight
 
>After I left this post yesterday I went into the VSI program again and found out that by double clicking the User Interface in the Project Explorer a user interface dialog box appears. Under Install Dialogs, expanding the Start Icon will display Select Installation Folder. Right click it and choose Delete.

That's what I meant...but I didn't have an english version in order to post the correct english text.

>One quirk
Could have been something else which happened to get in the way..was anything listed in the Task List?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top