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.

  • Comment on Re^2: Write file in Windows Programs folder

Replies are listed 'Best First'.
Re^3: Write file in Windows Programs folder
by salva (Canon) on Jan 25, 2018 at 10:09 UTC
    Use some kind of open source Software like NSIS or WIX to create an Installation package

    That's actually what Win32::Packer does. It builds an MSI installer for the Perl application using WIX.