in reply to Re: Write file in Windows Programs folder
in thread Write file in Windows Programs folder
Hi, the most correct way to get the "ProgramFiles" Folder would be
to use Win32::GetFolderPath(FOLDER), where FOLDER is the constant CSIDL_PROGRAM_FILES.
And yes, it is true that Administrator rights are necessary to write to this Folder, so you have to start your perl program "as Administrator".
A warning: If you try to write an Installation program using perl, don't do this!
Use some kind of open source Software like NSIS or WIX to create an Installation package.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Write file in Windows Programs folder
by salva (Canon) on Jan 25, 2018 at 10:09 UTC |