Solved

Install Shield 6.0 - copying files

Posted on 2000-02-14
13
230 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
Comment Utility
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
Comment Utility
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
Comment Utility

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
 
LVL 1

Author Comment

by:kpu8
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 8

Expert Comment

by:Brain2000
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Excellent.  Glad you got it working.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now