Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Install Shield 6.0 - copying files

Posted on 2000-02-14
13
Medium Priority
?
261 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
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 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.
Suggested Courses

885 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