CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2001
    Posts
    66

    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.


  2. #2
    Join Date
    Mar 2000
    Location
    NY USA
    Posts
    275

    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.


  3. #3
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    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.


  4. #4
    Xeon's Avatar
    Xeon is offline Elite Member Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    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

  5. #5
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    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.


  6. #6
    Join Date
    Aug 2001
    Posts
    66

    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


  7. #7
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    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


  8. #8
    Join Date
    Aug 2001
    Posts
    66

    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
  •  





Click Here to Expand Forum to Full Width

Featured