Solved

Install Shield 6.0 - copying files

Posted on 2000-02-14
13
238 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
  • 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

789 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