Link to home
Create AccountLog in
Avatar of itddawg83
itddawg83

asked on

Building Application with conditions

Hello,

VS Novice user here, I am currently building an application in Visual Studio 2005 and looking to compile it into an EXE/MSI but need to perform "checks" prior to it installing. Here is what I require:

1 - Performing a check to see if a previous version of a program is installed (preferably via registry)
2 - Need to check if Operating System is 32 or 64 bit
3- Need to check if user has administrative privileges

What is the best way to perform these "checks"? Launch Conditions? Custom Actions?

Your help is much appreciated.



ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of itddawg83
itddawg83

ASKER

Thank you vadimrapp1.

#2-  This app is an add-on to a program. The only reason I would like to avoid creating separate executables is because there is only one minor difference between 32 and 64 bit in my case [Installs in C:\Program Files or C:\Program Files(x86)]. I was hoping to be able to create an IIF statement for the Program Installs Folder with an OS version check but not sure if this is possible. If there is no way around this I will go ahead and create separate exe's.

You answered #1 and #3 for me Thank You vadimrapp1
> only one minor difference between 32 and 64 bit in my case [Installs in C:\Program Files or C:\Program Files(x86)].

There's much bigger difference: the executable itself is 64-bit.