PDA

Показать полную графическую версию : self extracting archive and UAC prompt of Windows 7


german_user
03-03-2010, 19:59
Hello to all users. (sorry for mistakes in using the forum, I dont understand Russian language)

We compiled a self extracting archive using a 7zS.sfx file and a config.txt file. The archive works fine, it extracts itself to %temp%\randomfolder and automatically starts a batch script as we ordered in the config.txt.
Now we are wondering about the fact, that the self extracting archive is showing an UAC prompt on Windows 7 when it is started. Where is this information stored? Where can we change this option? We don´t need the self extracting archive to prompt for administrator rights.
Is there any chance to change this option?

Thank you in advance.

Greetings from Germany!

Vadikan
03-03-2010, 22:57
sorry for mistakes in using the forum, I dont understand Russian language »
Well, in order to register you have to answer a question asked in Russian, unless you got lucky and drew a math question... Generally, we don't provide support in foreign languages...

At any rate, you've got to post your config file and batch script, as well as your winver info. Attaching your SFX would be a plus, if you can figure out how to do it :)

german_user
04-03-2010, 20:16
Hello.

Yes you are right, a russian colleague helped me with the registration.

Win Ver:
Microsoft Windows XP [Version 5.1.2600]

batch-script
del Zugangsclient.7z
del Zugangsclient.exe
cd folder
C:\Programme\7-zip\7z a -t7z ../Zugangsclient.7z * -mmt=on -mx=9
cd ..
copy /b 7z.sfx + config.txt + Zugangsclient.7z Zugangsclient.exe

config.txt
;!@Install@!UTF-8! RunProgram="Testzugang-einrichten.bat" ;!@InstallEnd@!

7zip version 4.65

In order to attach the file I asked another russian colleague :)

german_user
04-03-2010, 20:21
Ok now I uploaded the sfx-file. Sorry but I didn´t find a possibility to edit the post and add the file there.

Thank you very much for your help!

Vadikan
06-03-2010, 23:03
german_user, I've edited your code to make it more readable (hopefully, I did it right.).

UAC pops up when you need to perform an action as admin. Probably you try to copy a file or create/delete it in a folder, in which full rights are needed. For example, inside program files. To test, you can manually perform these operations in Explorer with UAC on, and you'll see which step is affected.

Let me know if it makes sense to you.




© OSzone.net 2001-2012