Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Тест-форум (http://forum.oszone.net/forumdisplay.php?f=26)
-   -   self extracting archive and UAC prompt of Windows 7 (http://forum.oszone.net/showthread.php?t=169111)

german_user 03-03-2010 19:59 1360598

self extracting archive and UAC prompt of Windows 7
 
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 1360723

Цитата:

Цитата german_user
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 1361368

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 1361371

Вложений: 1
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 1362621

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.


Время: 11:34.

Время: 11:34.
© OSzone.net 2001-