Archive: 3 Issues..Help Plz


3 Issues..Help Plz
Hi All,

I have just started working on NULLSoft installer. I need some help on following 3 issues :

1. Detection of OS. Using Nullsoft script, how can I detect OS of the target machine. Say, I have to install my application, only on Win ME , 2000 ,XP and above. How can I do that. Any links ?

2. Repair the software. Can we repair the software, after it has been installed ? Say after installation, some program files, get deleted. Then in that case, is it possible to repair the software through Add Remove Programs Panel ? Did anybody implement this functionality before ?

3. While unisntalling, I am not able to delete Shortcut made in $SMPPROGRAMS. I created the shortcut using following code :

CreateDirectory "$SMPROGRAMS\My Company"
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" \ "some command line parameters" "$INSTDIR\My Program.exe" 2 SW_SHOWNORMAL \ ALT|CTRL|SHIFT|F5 "a description"

Now in uninstalling section, in the end I am writing
RMDir /r "$SMPROGRAMS\My Company"

But this is not working ? Any help ?

Thanks and best regards,
Sunil.
Reply here or Mail me at : hi_khatri12@yahoo.com


Somebody, Please help. I am waiting for replies.

Thanks a lot in advance, :)
Sunil.


1. Appendix C: Useful Scripts of the NSIS Documentation
2. Check if a file exists or not with IfFileExists
3. Make sure you have SetShellVarContext set to all or current (try both).

-Stu


I have made a windows version check header file. See attachment.