Solved

Deployment wizard

Posted on 2002-06-05
6
155 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

747 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

10 Experts available now in Live!

Get 1:1 Help Now