Prev Previous Post   Next Post Next
Old 4th May 2003, 08:47   #1
blazer1504
Senior Member
 
blazer1504's Avatar
 
Join Date: Dec 2001
Location: .fi
Posts: 155
Help needed

I'm having little trouble with my install script and I'm wishing that maybe some of you guys could help me with this:

Okay, what I'm trying to do here is to detect winamp2 to $1 and Winamp3 to $2

ReadRegStr $1 HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp" \
"UninstallString"

ReadRegStr $2 HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp3" \
"UninstallString"

These sets wa2 (if exists) to $1 & wa3 (if exists) to $2, right.
because we get the path in file format (...\winamp(3)\uninstall.exe) I need to get that file stripped, and here's where I have problems.

With what function I could erase the letter from both, $1 & $2, one by one until the last letter would be different ?

Or with what function, I could erase letter from both , $1 & $2, one by one until the first ' \ ' mark comes ?
blazer1504 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