Solved

Deployment wizard

Posted on 2002-06-05
6
158 Views
Last Modified: 2010-05-02
In vb6,  I want to create an install package that either gives you a choice to install the application for all users or the user installing, or installs for all users automatically. Is this possible?
0
Comment
Question by:mmcmillen
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 7056573
It is possible but using the standard p&d wizard it is a bit more complex. Normally you define this when you create the package but to do it as you want you will have to modify the setup1.exe program. Now you can do this because the code for it exists in \program files\microsoft visual studio\vb98\wizards\pdwizard\setup1 folder (or something like that). Before you do of course, take a copy of the existing code because otherwise all future packages that you create will work this way. Alternatively work on the copy and once you have made the necessary changes to this application use your modified version in place of the default one in the .Cab file created by the p&d wizard. Either method should work fine.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7056739
You will need to modify Setup1.exe.

To do this:
-start by opening the Setup1 project (C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1\Setup1.vbp)
-open setup1.bas
-find the GetPrivate procedure
-replace the line found there by a message box asking the user for private or public install.
0
 
LVL 2

Author Comment

by:mmcmillen
ID: 7063190
Am I missing something?  After I posted this I found a setting in the wizard to make it public or private.  I also opened the setup.lst and saw a line in there for PrivateGroup0=false.  If that setting is true it only installs for the user doing the installing. I assume thats the setting changed in the wizard for public or private.  i guess your suggestions of changing setup1.exe make me wonder if my findings are too simplistic or I am missing something major.  It seemed to work when I installed.  Please advise.

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7063269
the PrivateGroup0 setting is set by the wizard when you create the package. I thought you were asking for a user determined way of selecting if the installation is public or private (in this case you need to modify the setup1.vbp).
0
 
LVL 2

Author Comment

by:mmcmillen
ID: 7063356
Ahh.   So how do I split these points for you guys since I wasn't clear enough and you both helped?
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 7063369
you need to ask a 0-point question to the CS (http://www.experts-exchange.com/commspt/) so that they reduce the points on this question, you then accept it for an expert and you post another 50-points question (like points for emoreau ref:Q_20308137) here.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question