Solved

Create Setup for a project developed in V6

Posted on 2016-10-30
10
34 Views
Last Modified: 2016-11-08
What is the best way create an install setup apps for a project developed in Windows Basic 6 assuring all DLL or any other files needed to tun properly the project is included.
0
Comment
Question by:rayluvs
10 Comments
 
LVL 45

Assisted Solution

by:Martin Liss
Martin Liss earned 167 total points
ID: 41866456
Take a look at this Microsoft Article. http://support.microsoft.com/kb/830761
0
 
LVL 49

Assisted Solution

by:Ryan Chong
Ryan Chong earned 167 total points
ID: 41866458
I used to use Inno Setup to create VB6 installation packages, which it's easy-to-use.

Inno Setup
http://www.jrsoftware.org/isinfo.php
0
 
LVL 4

Assisted Solution

by:Chris Watson
Chris Watson earned 166 total points
ID: 41866671
Advanced Installer is pretty good too.

http://www.advancedinstaller.com
0
 

Author Comment

by:rayluvs
ID: 41868121
Hi, we are not familiar with creating a deployment setup file for VB6, so bare with us.

The Microsoft Article doesn't say how to create the setup or we cannot see it.  We identified the Components & References part, but can't seem to see the final steps to actually create the setup.exe

  • Can you please provide the steps?

'Inno Setup' and Advanced Installer' doesn't seem say anything about VB6.

  • Can these be used for creating VB6 setups for our projects?
  • Can you guys provide the steps if it can be used for VB6?
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 41868127
Inno setup is working independently and not only compatible well with vb6 compiled executables.

I will try to provide some sample for you from my archive.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Accepted Solution

by:
rayluvs earned 0 total points
ID: 41868131
Ok found it:

- Go to Microsoft Visual Studio 6.0 Tools  >> Package & Deployment Wizard.
- Click  “Browse” button
- Then “Select Project”
- Click on Package Icon
- Select “Standard Setup Package” and hit “Next” button.
- Choose or create setup folder (we think?? - please advice us)
- List of dependencies could not be found
- Single Cab
- Installation Title
- Start Menu Group
- Install Locations
- Shared Files
- Script name (we don't know)
- Done

Please advice here what we are missing and anything else to considered.
0
 

Author Comment

by:rayluvs
ID: 41868135
Thanx Ryan, didn't see your entry, but can you help us on the steps and advice us? (unless you consider 'Inno setup' superior of course we will follow your lead on it)
0
 
LVL 49

Assisted Solution

by:Ryan Chong
Ryan Chong earned 167 total points
ID: 41868278
Inno Setup using a configuration file with file extension .iss

a sample .iss file from my own archive is shown as follows:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=Bla bla Questionnaire Generator - Administrator Console
AppVerName=Bla bla Questionnaire Generator - Administrator Console
AppPublisher=My Name (myemail@domain.com)
DefaultDirName={pf}\yourPath
DefaultGroupName=Bla bla Questionnaire Generator - Administrator Console
DisableProgramGroupPage=true
OutputDir=Output
OutputBaseFilename=whateveryourPath
AllowCancelDuringInstall=false
DisableFinishedPage=true
ShowLanguageDialog=yes
UsePreviousGroup=false
CreateUninstallRegKey=true
WizardImageFile=logo_bkg.bmp
WizardSmallImageFile=logo_small.bmp
WizardImageStretch=false
WizardImageBackColor=clWhite
;UninstallIconFile=Bla bla.ico
UninstallDisplayIcon=Bla bla.ico

[Tasks]
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional icons:
; NOTE: The following entry contains English phrases ("Create a Quick Launch icon" and "Additional icons"). You are free to translate them into another language if required.
Name: quicklaunchicon; Description: Create a &Quick Launch icon; GroupDescription: Additional icons:; Flags: unchecked

[Files]
Source: myExe.exe; DestDir: {app}; Flags: ignoreversion
Source: anotherExe_M.exe; DestDir: {app}; Flags: ignoreversion
Source: QNGenerator_OriLE.dat; DestDir: {app}; Flags: ignoreversion
Source: Setup\QNGenerator_LE.dat; DestDir: {app}; Flags: ignoreversion
Source: ResXpStylesTester.res; DestDir: {app}; Flags: ignoreversion
Source: Bla bla.ico; DestDir: {app}; Flags: ignoreversion
Source: Uninstall.ico; DestDir: {app}; Flags: ignoreversion
Source: logo_bkg.bmp; DestDir: {app}; Flags: ignoreversion
Source: logo_small.bmp; DestDir: {app}; Flags: ignoreversion
Source: QNGenerator.set; DestDir: {app}; Flags: ignoreversion
Source: noimg.gif; DestDir: {app}; Flags: ignoreversion
Source: MSVBVM60.DLL; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: MSDATGRD.OCX; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: mscomctl.ocx; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: MSCOMCT2.OCX; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: vbalIml6.ocx; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: vbalExpBar6.ocx; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: SSubTmr6.dll; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: cNewMenu6.dll; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Source: vbalMDITabs6.dll; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
;Source: help.chm; DestDir: {app}; Flags: ignoreversion
Source: Setup\LE_tmp\*.*; DestDir: {app}\LE_tmp

[Icons]
Name: {group}\Bla bla Questionnaire Generator - Administrator Console; Filename: {app}\myExe.exe
;Name: {group}\User Manual; Filename: {app}\help.chm
Name: {group}\Uninstall; Filename: {app}\unins000.exe; IconFilename: {app}\Uninstall.ico
Name: {userdesktop}\Bla bla Questionnaire Generator - Administrator Console; Filename: {app}\myExe.exe; Tasks: desktopicon
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Bla bla Questionnaire Generator - Administrator Console; Filename: {app}\myExe.exe; Tasks: quicklaunchicon

[_ISTool]
Use7zip=false

[Run]
Filename: {app}\myExe.exe; Flags: shellexec skipifdoesntexist

[Registry]
Root: HKLM; Subkey: SOFTWARE\whatever\myExe; ValueType: string; ValueName: SettingFile; ValueData: QNGenerator.set; Flags: uninsdeletekey
Root: HKCU; Subkey: SOFTWARE\VB and VBA Program Settings\myExe\Settings; ValueType: string; ValueName: showExpBar; ValueData: 1; Flags: uninsdeletekey
Root: HKCU; Subkey: SOFTWARE\VB and VBA Program Settings\myExe\Settings; ValueType: string; ValueName: promptWhenExit; ValueData: 0; Flags: uninsdeletekey
Root: HKCU; Subkey: SOFTWARE\VB and VBA Program Settings\myExe\Settings; ValueType: string; ValueName: frmSearchQuestionList_chkClose; ValueData: 1; Flags: uninsdeletekey
Root: HKCU; Subkey: SOFTWARE\VB an VBA Program Settings\myExe; ValueType: string; ValueName: ; ValueData: ; Flags: uninsdeletekey

[UninstallDelete]
Name: {app}\LE_tmp\*.*; Type: filesandordirs
Name: {app}\LE_tmp; Type: filesandordirs

Open in new window

but for your info, this file was created 10 years ago! so you may refer back to the latest documentation in Inno Setup website.
http://www.jrsoftware.org/ishelp/

you can actually create the configuration file from the program wizard as well. as mentioned, it's easy to do so.
0
 

Author Comment

by:rayluvs
ID: 41868295
Yes, we assume it's reading up and modifying the script to our install.  

Though greatly appreciated in your Inno Setup help, at this point we see the VB install/deploy much easier (we don't have may projects to create setup to).  Based on our entry ID: 41868278, can you review if we are missing something?
0
 

Author Closing Comment

by:rayluvs
ID: 41878478
We chose our entry as the best because we were able to use vb6 apps directly (in case a member would come upon similar situation as us)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
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…

707 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

19 Experts available now in Live!

Get 1:1 Help Now