Hi, We are using InstallBuilder v8.5.1. When I try with AutoUpdate feature, I found a issue regarding tuning UAC. We have an application would like to utilize autoupdate.exe as notifier. But our application is running as user mode, which does not require elevated privilege. We want to launch autoupdate.exe as unattended mode to check if there is any update. To prevent UAC pop up when running it as unattended mode, we should like to generate the autoupdate.exe as non-elevated privilege. From Documentation and changelog, I can see AutoUpdate feature support requestedExecutionLevel attribute to modify the manifest.

But when I try it, with following XML:

<autoUpdateProject>
  <fullName>APP Client AutoUpdate Tool</fullName>
  <shortName>APP</shortName>
  <vendor>APP INC.</vendor>
  <version>1.0.0</version> 
  <singleInstanceCheck>1</singleInstanceCheck>
  <requestedExecutionLevel>asInvoker</requestedExecutionLevel>
</autoUpdateProject>

But we got error as following:

C:\>"C:\Program Files\BitRock InstallBuilder Professional 8.5.1\autoupdate\bin\customize.exe" build C:\Win32\autoupdate.xml windows
Error changing executionlevel

The autoupdate.exe is generated under User ProfileDocumentsAutoUpdateoutput folder, but still invoke as elevated privilege which require UAC dialog pop up. And you can notice the "Error changing executionlevel" error as well in commandline.

Is this a bug? or anything wrong with my usage?

Thanks, William L.

asked 24 Apr '13, 08:08

welemon's gravatar image

welemon
1111
accept rate: 0%


Can you try to download InstallBuilder 8.5.2 (Professional, Enterprise or Qt) and build autoupdate using a fresh installation?

We have just doublechecked and with your exact configuration, it is built properly:

C:\>"C:\InstallBuilder\autoupdate\bin\customize.exe" build autoupdate.xml windows Autoupdater successfully created. You can find it at C:\Users\BitRock\Documents\AutoUpdate\output\autoupdate-windows.exe

What operating system version are you trying to build it on?

link

answered 24 Apr '13, 09:08

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

We are using Windows 7(both 32 and 64 tried) OS with UAC on. I will grab a 8.5.2 version and see.

(24 Apr '13, 09:21) welemon

Okay, I think I find something. This might be caused by anti-virus software is preventing modifying or creating exe. After getting latest 8.5.2, it still have some issue. but if I change XML file content or move the install location, it has small chance to be able to generate correct exe. If I re-run the same process with same XML content and location, most likely it will fail error.

see my following testing result:

C:\InstallBuilder8.5.2_\autoupdate\bin>customize.exe build autoupdate.xml windows
Autoupdater successfully created. You can find it at

 C:\Users\leewi\Documents\AutoUpdate\output\autoupdate-windows.exe

C:\InstallBuilder8.5.2_\autoupdate\bin>customize.exe build autoupdate.xml windows
Error changing executionlevel

C:\InstallBuilder8.5.2_\autoupdate\bin>customize.exe build autoupdate.xml windows
Error changing executionlevel

C:\InstallBuilder8.5.2_\autoupdate\bin>customize.exe build autoupdate.xml windows
Couldn't open C:/Users/leewi/Documents/AutoUpdate/output/autoupdate-windows.exe:
couldn't open "C:/Users/leewi/Documents/AutoUpdate/output/autoupdate-windows.exe": permission denied

C:\InstallBuilder8.5.2_\autoupdate\bin>customize.exe build autoupdate.xml windows
Error changing executionlevel

C:\InstallBuilder8.5.2_\autoupdate\bin>

I think BitRock InstallBuilder should take this as common use case, enterprise users commonly install anti-virus software by IT, without chance to disable it.

Is it possible to avoid *.exe extension while generating autoupdate.exe? We can rename it after changing the manifest etc.

thanks, William L.

link

answered 24 Apr '13, 09:59

welemon's gravatar image

welemon
1111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×52
×44
×9
×1
×1

Asked: 24 Apr '13, 08:08

Seen: 1,652 times

Last updated: 24 Apr '13, 10:01