|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2003
Posts: 6
|
Some files are copied to c:\ instead to the install dir
Its strange, some useres report that DeskCalc.exe file was sent to root directory (c:\), but the uninstall programs (Uninstall.exe and uninst-nsis.exe) were sent to the right directory (c:\Program Files\DeskCalc Pro) along with the help subdirectory (French and English help files).
Here's the script, can anybody help me with this, i'am using 2.0Beta3 Thank you Mario ;-------------------------------- ;Installer Sections Section "Deskcalc.exe" SecCopyUI ;Add your stuff here SetOutPath "$INSTDIR" File "lizenz.txt" File "f:\Projects\DeskCalc.uk\TaxCalc___Win32_Release_englisch\deskcalc.exe" File "f:\PROJECTS\DeskCalc.uk\Taxcalc.bat" File "f:\PROJECTS\DeskCalc.uk\wait.exe" SetOutPath "$INSTDIR\HELP" File "f:\PROJECTS\DeskCalc.uk\help\deskcalc_uk.chm" File "f:\PROJECTS\DeskCalc.uk\help\deskcalc_fr.chm" File "f:\PROJECTS\DeskCalc.uk\help\deskcalc_basics.swf" File "f:\PROJECTS\DeskCalc.uk\help\deskcalc_basics.html" ;Add your stuff here WriteUninstaller "$INSTDIR\Uninstall.exe" SetOutPath "$INSTDIR" SectionEnd |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
|
You might want to upgrade to b4 and see if that fixes the problem.
-Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2003
Posts: 6
|
thanks, but does anyone know that this bug is fixed in B4 ?
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
I know no such bug. Please attach the entire script.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2003
Posts: 6
|
here it is, its really strange, this problem happens only on some
machine. i haven't seen that myself, so i cannt reproduce it. script is attached ! thanks mario |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
You have some errors in your script. You have mixed code from makensis.nsi with your own code. You write to the NSIS registry key instead into your own:
You create uninst-nsis.exe again after you've created Uinstall.exe:code: And you still read $INSTDIR from your own registry key though you don't write anything there:code: Those users probably had a previous installation of your product which wrote something to that registry key on its own. NSIS probably read that key, got the wrong directory from and installed the files in there. The wrong directory in their case was the root directory.code: You also get the desktop dirctory using the wrong method. You should use $DESKTOP and not $SMPROGRAMS\..\.. which might not always work. You also forgot to quote the paths in ExecShell. Try the attached file with b4 or the latest CVS version. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Dec 2003
Posts: 6
|
thank you,
i'll try that! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|