Link to home
Start Free TrialLog in
Avatar of kwseow
kwseow

asked on

Package and deployment Wizard

Hi experts!
I've a couple of questions regarding the Package and Deployment wizard that comes with VB:

1) How to include copying of an "external" file?

I have lots dat and database files that is not created when I generate the cab files.  However, during the installation, I would like to copy these files into their respective directories. E.g.

Apps_dir > Bin_dir
             > Data_dir
             > File_dir

Bin_dir contains all my applications binaries (exe and dlls), Data_Dir contains databases, File_dir contains additional data files.  I would like to maintain the same directory structure on the installed PC.  Can I do that with the wizard?

2) I would like to package my application such that all the exe, dlls, ocx etc goes into one CD, all the databases and dat file into another.  How do I do that in the wizard?  

If the wizard is not able to do so, would anyone recommend a 3rd party installation support software that can do that?

Thanks

Avatar of MsLim
MsLim

Hai K W Seow ,
I not sure what is the purpose of putting database and dat file into different database.
the below is for all in one
 During installation , actually will also can allow to put in sub folder
Apps_dir > Bin_dir
             > Data_dir
             > File_dir
The step that you need to do during Package and deployment Wizard
When the screen title display as Package and Deployment Wizard - Includes Files,
click the button Add , then select what ever file that you want to be added such as database , dat File etc .
Upon complete select Next button upto the screen title display as Package and Deployment Wizrad - Install Locations ,
click the arrow to right , you will see the Install Location , at here you can change the destination location that you want the file to be install.
eg : $(appPath)\data   means application dir with subfolder call data
so that all of its will be in your cab file , and you will not headatch of missing file during installation.
first question:
At Package and deployment Wizard-include files step,You can add dat and database files that is not created when you generate the cab files.
then at Package and deployment Wizard-installtion location step,you can see a datagrid that include "installtion location" column.In the column,You can respective put the files into your desired location as follows:
$(AppPath)\bin_dir,$(AppPath)\data_dir,$(AppPath)\file_dir
zhangchenyu,
same with what I explain.
To MsLim:
As China saying:Heros have the same views.
Another option is to use Inno Setup and ISTool - Much better than Setup Wizard from VB

http://www.istool.org/

http://www.jrsoftware.org/isinfo.php
I second bdbrown's suggestion. I ditched PDW for InnoSetup and it's infinitely better.
Avatar of kwseow

ASKER

Thanks for the comments, let me check out Inno Setup.
But from what I know , all ( inno , PDW,Installshield ,etc)  also is in one , can not be separate into program one CD , data in the other CD , unless data you copy it manually.
Avatar of kwseow

ASKER

At a moment, seems to be the case.  May need to write a simple program to do the copying after the main installation ends.  For Inno case, seems like I can specify it in [Run] section.  Right?


Inno Setup can do the job - what you need to do is write a bach file of small executalbe which will copy your data from the CD and include it in Files & Dirs of the setup. Set the flag to Delete after install. Then select Run Install and include it as a Post Install.

bdb
Avatar of kwseow

ASKER

How do I specify in Inno Setup to prompt the use to change CD?

I am not sure - there is a Messages area but have never used it - I would include the message in the .bat or .exe you create to the copy data from the CD. I would recommend running a small .exe where you could put a message box on the form. You would then be able to make it as fancy or simple as you wish.

...    msgbox "Insert Data CD and click OK to continue."

bdb
Avatar of kwseow

ASKER

Hi to follow up on this, if I specify an application to be executed in the [Run] section, am I able to abort the whole installation based on the results of this application?
are you saying using Inno or PWD and run the setup.exe ?
you are saying abort in the sense of copying or during setup ?
you may using task Manager to end task it BUT I do not think this is the right way .
If you are saying installation, then you can uninstall your program from the control panel -> add or Remove program. BUT for some part which you use copying will not be able to remove it . This is why I say uding PWD , Inno , Install Shield by adding the extra is better.
Avatar of kwseow

ASKER

what I meant is using Inno.  I've written another small application to do copying of files from CDROM to harddisk as suggested. but if I should encounter some unexpected error, I would like to abort the whole installation, ie remove ALL files.

Can that be done specifically in Inno ?
ASKER CERTIFIED SOLUTION
Avatar of bdbrown
bdbrown
Flag of Canada image

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
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered bdbrown
 
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

leonstryker
EE Cleanup Volunteer