You are here

PortableApps.comInstaller.exe cannot find $INSTDIR

3 posts / 0 new
Last post
ClevX
Offline
Last seen: 5 years 6 months ago
Joined: 2015-08-17 15:09
PortableApps.comInstaller.exe cannot find $INSTDIR

I need to copy my app to drive root (e.g. F:\) after installation. I add NSIS macro to \Other\Source\PortableApps.comInstallerCustom.nsh:
!macro CustomCodePostInstall
SetOutPath "$INSTDIR\.."
File /nonfatal /a /r "$INSTDIR\App\USBtoCloud\"
!macroend
But it does not work. In PortableApps.comInstallerLog.txt i see text:
warning 7010: File: "$INSTDIR\App\USBtoCloud\" -> no files found. (macro:CustomCodePostInstall:2).
Why? This folder is not empty, because it is app-folder.

I try to use absolute path in File command, for example:
!macro CustomCodePostInstall
SetOutPath "$INSTDIR\.."
File /nonfatal /a /r "D:\Usb2CloudPortable\App\USBtoCloud\"
!macroend
It works. But I cannot use absolute paths.
Help me please.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 days 2 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
File vs Folder

I think it might be a file vs folder problem - try adding *.* to the end of your File line.

ClevX
Offline
Last seen: 5 years 6 months ago
Joined: 2015-08-17 15:09
It did not help me

I tried do this. Nothing changed.

Log in or register to post comments