[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 518
  • Last Modified:

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
0
tnt672397
Asked:
tnt672397
  • 5
  • 4
  • 2
  • +1
1 Solution
 
PePiCommented:
try and stay away from Package & Deployment Wizard. Take a look at Inno Setup

http://www.jrsoftware.org/isinfo.php
0
 
PePiCommented:
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!
0
 
tnt672397Author Commented:
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
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
tnt672397Author Commented:
I didnt see how to create a setup file and incorporate other important files
0
 
PePiCommented:
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






0
 
jcoutureCommented:
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.

0
 
jcoutureCommented:
Sorry PePi, I must have been typing my response as you were typing yours.
0
 
tnt672397Author Commented:
I opened the lst file (created by ISTool) in the Inno Setup, I got an error: unsafe file detected RICHED32.DLL
0
 
PePiCommented:
I think that is just a warning. It did not import anything?
0
 
PePiCommented:
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.


0
 
tnt672397Author Commented:
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
0
 
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 5
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now