|
|
#1 |
|
Junior Member
Join Date: Dec 2004
Location: Jo-burg.South Africa
Posts: 14
|
Hi everybody.First I would just like to thank everyone for all there help,Now I need help with something else.
My installer installs MSDE,but what if the user already has MSDE installed,so then I created a dialog for the user to input his sa password so that I can attach the database which works great.But what about the users that dont have MSDE installed, you see if they dont have it installed then I dont want them to see the input dialog.So I need some sort of an if statement,so that if they dont have MSDE then the istaller will use the default password and not show the Input dialog. Anyone that has some code or something please try and help me. Thanx so much |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Sep 2004
Location: Nottingham
Posts: 263
|
Er sorry, is your question simply: how do I make an if statement?
2 good ways: 1) Create a variable e.g. Var MSDEInstalled 2) If they have MSDE installed, do StrCpy $MSDEInstalled "true" 3) if they do not, do StrCpy $MSDEInstaled "false" Then when you come to decide whether they need the dialog or not, do: code: OR use the LogicLib plugin that comes with NSIS, that has some form of if statement. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2004
Location: Jo-burg.South Africa
Posts: 14
|
If Statements
That is basically what I want to do.
Thanx I will try that. |
|
|
|
|
|
#4 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|