Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 8th April 2009, 13:45   #1
daslurch
Junior Member
 
Join Date: Apr 2009
Posts: 1
Query whether MS Excel is installed or not

Hello,

first I would like to apologize for my bad English, i come from Germany so a bit charity about my grammar/spelling/vocabulary would be nice

Ive made a script for NSIS, which installs a program which exports Excel tables from *.ini files. Now my only problem is that my program needs Excel to work, so I would like to include a simple query before the installation starts, whether MS Excel is installed and an automatically exit of the installation if it's not.
Im not very familiar with NSIS and really dont have an idea how to solve that problem.

I appreciate any help on this topic. If you have any further questions feel free to ask.

Kind regards,
Dasluch
daslurch is offline   Reply With Quote
Old 8th April 2009, 14:28   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 545
You can use this script to check if Excel is installed:
code:
ClearErrors
EnumRegKey $0 HKCR "Excel.Application" 0
IfErrors error
MessageBox MB_OK "Excel is installed"
Goto done
error:
MessageBox MB_OK "Excel is not installed"
done:
ClearErrors

It checks if the key "HKEY_CLASSES_ROOT\Excel.Application" exists.
(Idea from http://www.devx.com/vb2themax/Tip/19507)

Regards,
JP
jpderuiter is offline   Reply With Quote
Reply
Go Back   Winamp 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