Solved

Deployment wizard

Posted on 2002-06-05
6
156 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 69

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 69

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 69

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now