|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Location: Lille, FRANCE
Posts: 18
|
As I didn't found a script on the nsis page to detect MySQL in the registry, I just wrote mine and decided to share it.
I'm new to NSIS coding so feel free to make a better code To use it : Var $path_result Var $version_result !insertmacro CheckMySqlReg $path_result $version_result DetailPrint "MySQL : located in $path_result with version $version_result" code: |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
It'd be better whenever you want to share NSIS code to post it at wiki. This makes it easier for others to find it.
A quick look on the code; if you really want to preserve the values of $0, $1, $2, $R0, you should turn upside down when you Pop, see here , also probably you do not need StrCpy ${_RESULT} "" and StrCpy ${_RESULT2} "", while declared variables $path_result and $version_result are already empty
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2006
Location: Lille, FRANCE
Posts: 18
|
thank you for the tip
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Nov 2006
Posts: 19
|
I had a similar requirement where i needed to detect MSDE /MSSQL and run the uninstaller path.
I used registry.nsh plugin to locate the path , then using that path, locate and run a substring : (extracted code) code: It can probably be cleaned up a little - i really only modified the example scripts included in the plugin and cut it. Unless RW and co see any major problems with the code i shall add it to WiKi later this week. |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
My opinion is this; contribution should be our duty, this is the way NSIS grows up and spreads all over.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|