Old 24th February 2005, 02:02   #1
emilsoft
Junior Member
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 1
Detect if a part of the software is installed...

Hi All,

I'm currently working on three different programs, one of which will be included in the instalation package of the other two. What I mean is this:

A -> One stand-alone Software
B -> Another stand-alone software
C -> Yet another stand-alone software

Now, Product A's and Product B's installers will both include Product C as part of their installtion. What I want to do is for either setup program to check to see whether Product C has been previously installed, if not then install the software itself. They all use registry keys, so it's possible to detect them, but I don't know how. Is this whole idea possible to implement?

Please keep it as detailed and step-by-step as possible, since I'm very new to this.

Thanks.
emilsoft is offline   Reply With Quote
Old 24th February 2005, 15:07   #2
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Installation of product C you can make using one hidden section (inside section include write in registry "installed-identification" ):
code:
Section "-ProductC"
...
WriteRegStr "..root_key.." "..sub_key.." "..name.."
...
SectionEnd



In .onInit function you must detect if a product is already installed - read registry using ReadRegStr instruction. If value is present (product installed) -> disable ProductC section (use SetcionSetFlags). If value is absent -> enable this section.

And include these code for both installers scripts.
glory_man is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump