I will try to explain you in not too many words
what I am trying to make is the following:
I would like to make an instalation that has a lot of images in arranged in
a folder (which would be placed on a cd with the instalation) which should
not be compressed or part of the installation cab files, plain files.
structure of the cd is something like this:
/imagesDir (dir)
(jpg files)
/thumbnails
(thumbnails)
/Data.cab
/setup.exe
/slide.msi
I would like those few folders to be copied to instalation folder (eg:
X:\imagesDir -> [InstallDir] \imagesDir)
I've found xcopyfiles command, but I don't know where to put it because I
don't know how installshield events work. (and to be honest InstallShield
variables are puzzling me too)
I am making this kind of arrangement because I want to change content of
this directory very often and I don't want to remake installation everytime
I change a single file
I know I should be reading manual :-(
Thanks,
Bob
To achive what you want, you should be able to use the install shield
install wizard, and just tell the wizard that you have these files and I
want to put them here.
With your other requirement which is to not rebuild the package because you
make changes to the content of the folder very often is really hard to do.
Your install package needs to know what files are installed on you system so
it can remove them and perform all of the operations properly when it
installs. It also stores the file size and attributes etc.
I would recomment not trying to achieve this goal and just rebuild each time
your instal changes.
"Bob" <NOSPAM...@yahoo.com> wrote in message
news:vkOM9.32059$Sy3.3...@news.chello.at...
I managed to do the following:
//////////////////////////////////////////////////
#include "ifx.h"
//copy folders
export prototype copy_folders(HWND);
function copy_folders(hMSI)
STRING SourceLoc;
STRING TargetLoc;
begin
SourceLoc = SRCDIR ^ \\products\\*.*;
TargetLoc = INSTALLDIR ^ "\\products\\";
if (XCopyFile(SourceLoc, TargetLoc, INCLUDE_SUBDIR) < 0) then
MessageBox ("Copy product files failed ", SEVERE);
abort;
endif;
end;
//remove folders
export prototype remove_folders(HWND);
function remove_folders(hMSI)
STRING TargetLoc;
begin
TargetLoc = INSTALLDIR ^ "\\products\\";
if (DeleteDir(TargetLoc,ALLCONTENTS) < 0) then
MessageBox("Setup was unable to delete " + TargetLoc + ". You will
have to delete it manualy.", SEVERE);
endif;
end;
//////////////////////////////////////////////////
copy folders runns with "NOT Installed" condition after installfiles and
remove_folders on "Installed" condition.
Only thing to worry about is that when files and folders are copied from the
CD they will have read only attribute set. Read only files apparently can
not be uninstalled.
I didn't know how to change attributes from within InstallShield (there
should be some way to do it) so I changed attributes on the first start of
the application (one more bad practice :))).
That is what I did...
Thanks again,
Borko
"Luke S" <sur...@ca.com> wrote in message
news:#tp8pegqCHA.2148@TK2MSFTNGP09...