Solved

Install Shield 6.0 - copying files

Posted on 2000-02-14
13
243 Views
Last Modified: 2013-11-14

I am using Install Shield 6.0 and everything works a-OK except that the files are not being copied onto the system - I inserted the files into the file groups - The install makes the three directories but it does not put the files in them nor place the files I need which remain in the root directory of the application- what did I miss -  


Thanks

Kevin


 
0
Comment
Question by:kpu8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 8

Expert Comment

by:Brain2000
ID: 2519447
Are you using the "static" or "dynamic" file copy?  Also, make sure that you have selected that file group for the proper setup (i.e. typical, compact, custom, etc...) so the file set is copied.
0
 
LVL 8

Expert Comment

by:Brain2000
ID: 2519452
Also, have you gotten the new 6.1 upgrade (installshield 2000)?  It's free for users of 6.0
0
 
LVL 1

Author Comment

by:kpu8
ID: 2522987

So I added the line -

 svDir = "c:\\testdir";
  nResult = ComponentSetTarget( MEDIA, "<TARGETDIR>", svDir);

in my MoveDataFile function because after your first comment I then realized I wasn't copying the
data to the target -

Now I'm in a error loop because I get error messages such as -103 and -132 an error occured during the data move process

Now the online help says to goto the Potentially Locked field in the  File groups tab and change it to Yes - which I have done then I get the -103 message whereas if I change the option to No I get the  -132

Any ideas - if not I now have version 6.1 so I may just install ahead but I'm so close now using this version

Thanks

 


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:kpu8
ID: 2523406
Ok - I fixed the -103 and -132 by adding  components using the ComponentAddItem function -

Now I have a -147 error - ahhhhhh

0
 
LVL 8

Expert Comment

by:Brain2000
ID: 2523749
Error 147 means that your ComponentAddItem() function is being passed a bad parameter.  Take out ComponentAddItem() for now.

I think I know your problem.  It's not finding the media (i.e. floppy disk).  Are you setting this up to install from a floppy?  Try using a media compile where everything is in one directory.  Do you still get error 132?
0
 
LVL 1

Author Comment

by:kpu8
ID: 2523847
Yes I am setting this up to install from a floppy
so when you say "Try using a media compile where evrything is in one directory" Can I assume you mean
either to try using a CD as a media or to comment out the three subdirectories? If I try CD as a media I still get error 132 -

Thanks for all your time thus far - you've been pointing me in the right directions - I just need to get my act together and make this puppy work - I'm a newbie
to install shield




0
 
LVL 8

Expert Comment

by:Brain2000
ID: 2524056
That's ok.  This is good experience for you.  I've only have about 2 days worth of experience myself with Installshield.  It's just like any other scripting programming language though.

Anyways, if you have tried to compile it from a single directory, and you're still getting error 132, it's somehow not finding where to copy the files FROM.  Let me look into how to set this...
0
 
LVL 8

Expert Comment

by:Brain2000
ID: 2524070
Ahhh.  I'm recalling a little how this works now.  We have to get ComponentAddItem() working.  Post how you used the ComponentAddItem() function.
0
 
LVL 1

Author Comment

by:kpu8
ID: 2524189
Here's the function:

function MoveFileData()
    NUMBER nResult, nDisk;
    NUMBER nvResult;
    STRING svResult, RMS3, Forms, Defs, Config;

 begin

  nDisk = 1;
  SetStatusWindow( 0, "" );
  Disable( DIALOGCACHE );
  Enable( STATUS );
  StatusUpdate( ON, 100 );

  ComponentAddItem(MEDIA, RMS3, 7096174, TRUE);
  ComponentAddItem(MEDIA, Forms, 3516063, TRUE);
  ComponentAddItem(MEDIA, Defs, 661683, TRUE);
  ComponentAddItem(MEDIA, Config, 1000, TRUE);

  svDir = "c:\\testdir";
  nResult = ComponentSetTarget( MEDIA, "<TARGETDIR>", svDir);
  HandleMoveDataError( nResult);
  nResult = ComponentMoveData( MEDIA, nDisk, 0 );
  TARGETDIR = svDir;

  HandleMoveDataError( nResult );

  Disable( STATUS );

  return nResult;

 end;
0
 
LVL 1

Author Comment

by:kpu8
ID: 2524278
Here's the function:

function MoveFileData()
    NUMBER nResult, nDisk;
    NUMBER nvResult;
    STRING svResult, RMS3, Forms, Defs, Config;

 begin

  nDisk = 1;
  SetStatusWindow( 0, "" );
  Disable( DIALOGCACHE );
  Enable( STATUS );
  StatusUpdate( ON, 100 );

  ComponentAddItem(MEDIA, RMS3, 7096174, TRUE);
  ComponentAddItem(MEDIA, Forms, 3516063, TRUE);
  ComponentAddItem(MEDIA, Defs, 661683, TRUE);
  ComponentAddItem(MEDIA, Config, 1000, TRUE);

  svDir = "c:\\testdir";
  nResult = ComponentSetTarget( MEDIA, "<TARGETDIR>", svDir);
  HandleMoveDataError( nResult);
  nResult = ComponentMoveData( MEDIA, nDisk, 0 );
  TARGETDIR = svDir;

  HandleMoveDataError( nResult );

  Disable( STATUS );

  return nResult;

 end;
0
 
LVL 8

Accepted Solution

by:
Brain2000 earned 100 total points
ID: 2525346
At first glance here, it looks like RMS3, Forms, Defs, and Config are not defined.  You've only declared them as Strings.  That could be causing error 147.  Try this instead:

ComponentAddItem(MEDIA, "RMS3", 7096174, TRUE);
  ComponentAddItem(MEDIA, "Forms", 3516063, TRUE);
  ComponentAddItem(MEDIA, "Defs", 661683, TRUE);
  ComponentAddItem(MEDIA, "Config", 1000, TRUE);

At this point, you can remove the String declarations for these 4 variables, since they are no longer variables.  By the way, I'm assuming that your component names are RMS3, Forms, Defs, and Config.
0
 
LVL 1

Author Comment

by:kpu8
ID: 2531626
Thanks - between your help and the fact I upgraded to 6.1 I was easily able to get the update work this morning with only a few minor modifications to the script which 6.1 provides through the wizard

Thanks again - I hope the next time I use this product is for my own piece of software which makes me a million

 

0
 
LVL 8

Expert Comment

by:Brain2000
ID: 2532016
Excellent.  Glad you got it working.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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