Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install into c:\Program files on Windows 7

I have an installer written in Java using Izpack. It works OK on Windows XP, however on Windows 7 it cannot write to c:\Program Files. Strangely enough, as a user running this installer I can create folders under c:\program files, but not from the installer itself.

What am I missing ?

like image 937
Demiurg Avatar asked Feb 04 '10 22:02

Demiurg


1 Answers

in order to write to this path, the installer would need to ask for and been granted run as adminsitrator privledges.

For Java: Run the CMD prompt as admin or powershell as admin and navigate to JAVA's Bin dir....and run java.exe -jar #Full path of your jar file# that will get it the privledges

like image 64
Alex Avatar answered Oct 15 '22 18:10

Alex