Link to home
Start Free TrialLog in
Avatar of tnt672397
tnt672397

asked on

PACKAGING PROGRAM IN VISUAL BASIC

(1) How do I create a desktop shortcut of my App.exe after installation?
(2) How do I remove previous programs of my App.exe (entire Program File folder), before installing it (in case someone re-installs)?

*Or maybe I should ask how to create an uninstall program .

I'm using Package & Deployment for VB6
Avatar of PePi
PePi

try and stay away from Package & Deployment Wizard. Take a look at Inno Setup

http://www.jrsoftware.org/isinfo.php
oh i forgot. Using Inno Setup will:

(1) create a desktop shortcut for you
(2) will have an uninstall feature; and you can always check if the application is already installed by using scripts

check out the link i gave in the previous post


cheers!
Avatar of tnt672397

ASKER

How do I use Inno Setup with *.dll, *.ocx, and other important files that need to be distributed.

I tried using Inno, got lost

I need a quick and easy solution at this point
I didnt see how to create a setup file and incorporate other important files
oh i forgot. you can download ISTool and use your package & deployment file (.LST) and it will convert this to Inno Setup. you can get ISTool at:

http://www.istool.org/default.aspx/

you can then save this file and open it up in the Inno Setup complier. I know that will take a bit of your time but believe me this will make your life a lot better.

ex. of how to add dlls, ocx, etc... in Inno Setup. It will also automatically register the files for you


[Files]
Source: c:\developer version\newprogram\settings.ini; DestDir: {app}
Source: c:\developer version\newprogram\cancodes.ini; DestDir: {app}
Source: c:\developer version\newprogram\dependency files\*.bmp; DestDir: {app}\Icons
Source: c:\developer version\newprogram\dependency files\check.gif; DestDir: {app}\Icons
Source: c:\developer version\newprogram\reports\*.rpt; DestDir: {app}\Reports
Source: c:\program files\support tools\tabctl32.ocx; DestDir: {app}\DLL Files; Flags: regserver restartreplace sharedfile
Source: c:\program files\support tools\comdlg32.ocx; DestDir: {app}\DLL Files; Flags: regserver restartreplace sharedfile
Source: c:\program files\microsoft business solutions\great plains\mscomctl.ocx; DestDir: {app}\DLL Files; Flags: regserver restartreplace sharedfile






PePi is correct.  Use InnoSetup.  You should also download the GUI for Innosetup called ISTool.
You can get it at http://www.istool.org/

When you start a new InnoSetup script using ISTool, you are given a window that has you enter in the primary program executible path.  The window directly below that is for adding additional files such as DLLs, OCXs, Text files, help files, etc.

Simply click the Add Files button and select the additional files you need to send with your install.

Sorry PePi, I must have been typing my response as you were typing yours.
I opened the lst file (created by ISTool) in the Inno Setup, I got an error: unsafe file detected RICHED32.DLL
I think that is just a warning. It did not import anything?
the file's extension which you should be opening in Inno Setup Compiler is .ISS. After opening the .LST file in ISTool, save it and it will produce a .ISS file. Now open that with the Inno Setup compiler.


I'm not familiar with ISTool, and this matter is very time-sensitive.

With Package & Deployment I got a message box stating:
The wizard found dependency info for the listed files, but the info is out of date. To proceed with the out-of-date info, click OK. (All OCX files)
-comct332
-mschrt20
-mscomct2
-mscomctl
What should I do?
Click OK and remove the given files from the setup?
Clicking cancel will not let me proceed to building the cab file
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial