Solved

InstallSheild: a step I don't know.

Posted on 2001-06-05
10
221 Views
Last Modified: 2013-11-20
This may be too simple, but do help me:

Try to make a setup pakage to a CD.....Have found InstallSheild is available in my PC....I tried to learn it before doing anything....By following the tutoral, using Project Wizard, I went step by step until pressed the Finish putton. At this point, I losted: what is the next step to build the setup package into the floppy disks or the CD?

Thank you in advance.
0
Comment
Question by:learn
  • 5
  • 4
10 Comments
 

Accepted Solution

by:
sgupta00 earned 100 total points
ID: 6157942
Goto Build -> Media Build Wizard and select CD-Rom option from there and follow the wizard. Then from Build menu option, select send media to ... and select the media you created before.
0
 

Author Comment

by:learn
ID: 6158256
Hi squpta00,

You are right, I can go a step more now (big step) Thank you so much!!
Can you tell me more (with a little more points:-)): How to know what files need to be included in the package and how to include them? At least, I know I need include two .ocx files.

Cheers.
0
 

Expert Comment

by:Blastarr
ID: 6159031
THAT would depend on your program. As you said, you already know you must include 2 OCXs. I suppose that is so because you are aware of theeir being used by your application. Now you must find out what else it uses.
It will also use a lot of dlls, and you should see which are always on windows, and which you must put in your package.

i once made an install which had different dll's for each operanting system (nt, 98, etc). you may not need to do so. i needed because i used the latest versions at the time.

another thing to be careful about, is NOT to overwrite vital system dlls without giving some thought to it. see if you can overwrite them as you wish, if you risk corrupting the system if you do, you may consider overwritting only if yours are more recent and in a specific OS, etc.

as you see, it all depends on your project, and how thorough you want to be
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 

Expert Comment

by:sgupta00
ID: 6160344
You might find the following articles helpful in determining whhich files to include in the package.

http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core_categories_of_redistributable_files.htm

http://msdn.microsoft.com/library/techart/redistribvc6.htm

And for second part of your question on how to insert files to package, on the bottom left side of Installsheild you would see tabs - click on File Groups. Here you can add various group for different types of files you would be inserting like executables, dll's, ocx's etc etc. Click on Links and then right click and select insert files - insert file dialog box pops up. You can then insert the files you want in your package.
0
 

Author Comment

by:learn
ID: 6164244
To squpta00,

Yes, I included the files that support my exe file by following your instruction, thank you again. Now, what is the next step to tell InstallSheild that how to deal with the files...or it can automatically copy and register them or the files will be simply copied in the same solder as the exe filewill be copied into?
0
 

Expert Comment

by:sgupta00
ID: 6164617
YOu can compile the script from Build->Media. After all the files are included, you goto Build Media Wizard, rebuild your media with all the files you want to include. You can also select Build->Run Setup to make sure everything's OK before you copy media to disk.
0
 

Author Comment

by:learn
ID: 6165582
Hi squpta00,

What I want was telling InstallSheild: copy the ocx to Windows/system and register them. How to do that?
0
 

Expert Comment

by:sgupta00
ID: 6166039
You can find this info from the Installshield Help Library.

InstallShield provides special functionality for installing self-registering files. The preferred method for installing self-registering files is to attach the Self Registered property to all the files in a file group, as described below. You can also install self-registering files by calling XCopyFile or VerUpdateFile with the SELFREGISTER option.

Organize all your self-registering files into unique file groups. Since a file group's properties apply to all its files, InstallShield will attempt to register every file in a file group that you specify as "Self Registered."  Therefore, InstallShield will return an error if you include any non-self-registering files in a self-registering file group.
InstallShield offers two methods for installing self-registering files:
  The batch method (recommended)
  The non-batch method
For a comparison of differences, see The batch method vs. the non-batch method.
InstallShield takes care of registering the files in this file group during setup (or when the system reboots if the files are in use?be sure to handle locked files appropriately). unInstallShield unregisters the files if they are to be removed.

Tips for installing self-registering files

Following are some further guidelines to keep in mind when installing self-registering files:

n     Make your function calls accurately with respect to calling ComponentMoveData to transfer the files. That is, you must call Enable before transferring the files, and you must call Do after the files are transferred.

n     When you call the Do function to carry out batch self-registration, SELFREGISTERBATCH must be enabled. Otherwise, Do will return FALSE.

n     Once Do is called, the internal list of queued, self-registering files gets reset, regardless of the success or failure of calling Do.

n     If Do is called to perform self-registration but no files are queued, the function will return TRUE.

n     If a self-registering DLL needs other DLLs to operate, the dependent DLLs must be in the path of the self-registering DLL before you call the Do function, or the self-registration will fail. InstallShield will change the current folder to the location where the DLL resides, thus making sure that the folder is in the path. By putting the dependent DLLs in the same location as the self-registering DLL, you can make sure that self registration succeeds.

Also note that if you have DLLs that are needed by your self-registering DLLs but are not in the same path, the self-registration will fail.

n     If you want to install files using the non-batch method after you have installed files using the batch method, you must first call Disable(SELFREGISTERBATCH).
0
 

Author Comment

by:learn
ID: 6171283
I will read the comments after I find out the dependancy problem:-(
0
 

Author Comment

by:learn
ID: 6186454
Thans a lot.
I am post another question:
ocx and InstallShield

Cheers.
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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 132
Process filename extension 3 196
Unix Command -- Challenging  question 7 96
how to split multiple lines delimiter : 8 112
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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