Old 26th January 2005, 07:38   #1
Junior Member
Join Date: Jan 2005
Posts: 1
Post Need to make sure MS Accees does before installing runtime

I have an Access runtime I want to install, but I want to make sure the user does not have access before installing the runtime. I try using SearchPath, GetFullPathName but none seem to work. I can get IfFileExits to word, but I must know the path. Can this be done better maybe using ReadRegStr, something that will let me know the version of Aceess if it does exits.

Function accessfullpath
SearchPath $2 "msaccess.exe"
GetFullPathName $3 "msaccess.exe"
;messagebox MB_OK "access path: $2"
DetailPrint "NSIS is installed at: $2"
DetailPrint "NSIS is installed at: $3"
IfFileExists "C:\program files\microsoft office\office11\msaccess.exe" 0 +2
MessageBox MB_OK "access is installed"

roodysenecal is offline   Reply With Quote
Old 26th January 2005, 11:07   #2
Afrow UK
Afrow UK's Avatar
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
SearchPath only searches in common folders like System.
GetFullPathName converts paths to short, or vise-versa (ie C:\Program Files => C:\Progra~1 in short)

Search your local registry to find a suitable registry key.
Microsoft Office until now as far as I know is always installed in $PROGRAMFILES\Microsoft Office because the installers never let you install anywhere else!
But still, searching for a file or folder is never a very good solution because you could always have duplicate file or folder names on a system.

Afrow UK is offline   Reply With Quote
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