Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Install Shield 6.0 - copying files

Posted on 2000-02-14
13
Medium Priority
?
256 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
Industry Leaders: 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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

704 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