Author Topic: UAC message when I compile auto-generated wxWidgets program  (Read 4114 times)

Offline Mug

  • Multiple posting newcomer
  • *
  • Posts: 10
UAC message when I compile auto-generated wxWidgets program
« on: February 28, 2013, 12:43:40 pm »
When I compile a wxWidgets project which contains the word "Setup" I get a UAC message every time I want to run it.
Quote
Do you want to allow the following program from an unknown publisher to make changes to your computer?
My OS is Windows 7 32 bit. I'm running Code:Blocks 12.11 with wxWidgets is 2.9.4
I have tried all sorts of combinations, like TestSetup, Setup1 etc. What am I doing wrong? Must I embed a manifest, and if yes, how and where?

These are my current settings:
Settings->Compiler...->Search Directories->Compiler
  C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
  C:\Program Files\Microsoft Visual Studio 10.0\VC\include

Settings->Compiler...->Search Directories->Linker
  C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib
  C:\Program Files\Microsoft Visual Studio 10.0\VC\lib

Settings->Compiler...->Search Directories->Resource Compiler
  C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
  C:\Program Files\Microsoft Visual Studio 10.0\VC\include
  
These are my steps to produce the problem
1. Start codeblocks 12.11.
2. Click "Create a new project".
3. Double click "wxWidgets Project".
4. Select wxWidgets 2.9.x (SVN Version).
5. Click "Next".
6. Enter Project title: "TestSetup".
7. Click "Next".
8. Click "Next*.
9. Select "wxSmith" and "Dialog Based".
10. Click "Next".
11. Accept wxWidgets' location: as "$(#wx)".
12. Click "Next".
13. Compiler is "Microsoft Visual C++ 2010 and both "Release" and "Debug" boxes are checked.
14. Click "Next".
15. Only "Enable Unicode" is checked.
16. Click "Next".
17. On the messagebox, click "Yes" to continue with Multi-threaded Dynamic CRT mode.
18. Select wxHTML, wxJpeg and wxTiff.
19. Click "Finish".
20. Build and run the application with F9
« Last Edit: February 28, 2013, 02:59:03 pm by Mug »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: UAC message when I compile auto-generated wxWidgets program
« Reply #1 on: March 06, 2013, 02:46:42 pm »
Read the info at this link http://msdn.microsoft.com/en-us/magazine/cc163486.aspx


Per it, You need a manifest file.

The only Plugin I know that has to do with manifest files is "Windows XP Look'n'Feel".

So, I suggest trying the "Windows XP Look'n'Feel"; no idea how it works.

From the name XP I am guessing it will be a waste of time.

But, if you figure out how to extend or use  "Windows XP Look'n'Feel" CB Plugin.

Please post the patches and/or directions.

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Mug

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: UAC message when I compile auto-generated wxWidgets program
« Reply #2 on: March 07, 2013, 10:23:19 am »
Read the info at this link http://msdn.microsoft.com/en-us/magazine/cc163486.aspx


Per it, You need a manifest file.

The only Plugin I know that has to do with manifest files is "Windows XP Look'n'Feel".

So, I suggest trying the "Windows XP Look'n'Feel"; no idea how it works.

From the name XP I am guessing it will be a waste of time.

But, if you figure out how to extend or use  "Windows XP Look'n'Feel" CB Plugin.

Please post the patches and/or directions.

Tim S.



Well, thanks for your reply. Unfortunately I've had no luck. Most documentation I've found is for older versions of wxWidgets and/or CB. The wxWidgets manifest is there, but I haven't a clue if and how it's being compiled. I'm trying to learn CB and wxWidgets but all I keep finding is outdated documentation and many, many, too many, stumbling blocks. I don't have enough experience and time to figure all this out myself. For the time being I've removed the word "Setup" from the program name, but I really would like to give the program it's proper name.

So please, who can tell me how I can include a manifest file in my program using Code::Blocks which contains the word "Setup" so I can run it without always having that darn UAC message pop up every time.