[Launch]
ProgramExecutable="USBCopyProtect\USBCopyProtect.exe"
SingleAppInstance=true
WaitForProgram=true
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
USBCopyProtect="HKCU\Software\Netlock"

[FilesMove]
settings\Netlock.lg=%PUBLIC%

[FileWrite1]
Type=Replace
File=%pal:DataDir%\Settings\USBCopyProtect.reg
Find=%USERPROFILE%\\AppData\\Roaming
Replace=%pal:DataDir:doublebackslash%

[FileWrite2]
Type=Replace
File=%pal:DataDir%\Settings\USBCopyProtect.reg
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite3]
Type=Replace
File=%pal:DataDir%\Settings\USBCopyProtect.reg
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\