Old 13th July 2016, 20:23   #1
oakolawole
Junior Member
 
Join Date: Jul 2016
Posts: 4
Detecting Registry Values

I am trying to write an install script. During installation, I want script to check if Windows Mobile Device Center has been installed.

following from the example in NSIS

ReadRegStr $0 HKLM Software\NSIS ""
DetailPrint "NSIS is installed at: $0"

I write
ReadRegStr $0 HKCR Installer\Products\DC276626FCFB9A94EAEFBAF0DEB3CFB5 ""
DetailPrint "Windows Mobile Device Center is installed at: $0"

That fails.

I am looking for the right script that will let me know that the application has been installed, hence no need to install it.
oakolawole is offline   Reply With Quote
Old 13th July 2016, 21:54   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,445
Those keys don't seem to have a default ("") value, try "PackageCode"

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
install within install

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