|
-
September 18th, 2001, 08:31 AM
#1
Installshield help needed !
I really need help to create a setup for my program. I would like to use installshield 6.0.
My app use an ActiveX and I don't know how to insert it in the setup program.
I never used installshield before, then I would like to get good help on it.
I tried to follow the tutorial, but it doesn't seem to work.
SBonneau.
-
September 18th, 2001, 08:48 AM
#2
Re: Installshield help needed !
You have to do the following steps:
1. Copy your .OCX file to the target machine.
2. Register it with regsvr32.exe
3. Check whether your ActiveX has been registered successfully.
So far you can write a function like this:
function InstallOCX()
NUMBER nResult;
STRING svRegsvr32;
STRING svOCX;
begin
svRegsvr32=WINSYSDIR + "\\regsvr32.exe";
svOCX =TARGETDIR + "\\MyActiveX.ocx";
LongPathToQuote(svRegsvr32,TRUE);
LongPathToQuote(svOCX, TRUE);
nResult = LaunchAppAndWait (svRegsvr32, "/s " + svOCX, WAIT );
if(nResult<0) then
MessageBox("Failed to register OCX control", SEVERE);
bInstallAborted = TRUE;
else
MessageBox("OCX control has been registered successfully", SEVERE);
endif;
end;
bool bInstallAborted - global variable which you can use to control your installtion process.
Hope it'll help.
KYG.
-
September 18th, 2001, 08:51 AM
#3
Re: Installshield help needed !
1)create a file group
2)add to the group your ocx file
2.5) click on (choose) your just created file group
3)set the VALUE of the Self-registered field to YES
compile and build your project
Bayram.
-
September 18th, 2001, 08:55 AM
#4
Re: Installshield help needed !
Hi there, Bayram! I would like to ask u if u know the steps needed to create additional folders with additional program files in them, so that when the user has finish the installation, the destination directory will have a few folders(and files within them) inside in main program's folders.(which in turn, is under C:\Program Files) This is what those big programs like MS Office does : They've more than 1 folders and lots of files within these folders. How do we get InstallShield to do this? The steps needed? Thanks a lot, Bayram! :-D
[b]............[b]
"Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria
"I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria
-
September 18th, 2001, 09:05 AM
#5
Re: Installshield help needed !
Hi Xeon1
well, try the following:
1) click on Components tab
2) click on (choose) a folder where your files you want to copy to a different dir are stored
3) on the right side you can see Destination field
field, create a new dir and rename it
4) compile and rebuild your prj.
Let me know if it helps you.
Bayram.
-
September 18th, 2001, 09:08 AM
#6
Re: Installshield help needed !
oki I did it ...
but where do I have to add my others files like cpp and .h and .obj ..
Do I have to app my debug directory ?
SBonneau
-
September 18th, 2001, 09:10 AM
#7
Re: Installshield help needed !
why do you need your cpp. h, obj files. You should include only exe release file.
Just create another file group and add your exe file.
Bayram
-
September 18th, 2001, 09:23 AM
#8
Re: Installshield help needed !
oki, sorry ... i really don't know how works an installshield...
now, I compiled my app in release mode, I add the exe release in a file group ..
but... when I run the setup from the installsheild ... it doesn't seem to install anything ...
The only file that I have in my directory in Programs Files .. is "Uninst.isu"
???
SBonneau
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|