Solved

InstallSheild: a step I don't know.

Posted on 2001-06-05
10
213 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Expert Comment

by:sgupta00
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Expert Comment

by:sgupta00
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I will read the comments after I find out the dependancy problem:-(
0
 

Author Comment

by:learn
Comment Utility
Thans a lot.
I am post another question:
ocx and InstallShield

Cheers.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

12 Experts available now in Live!

Get 1:1 Help Now