News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

UAC message when I compile auto-generated wxWidgets program

Started by Mug, February 28, 2013, 12:43:40 PM

Previous topic - Next topic

Mug

When I compile a wxWidgets project which contains the word "Setup" I get a UAC message every time I want to run it.
QuoteDo 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

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Mug

Quote from: stahta01 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.



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.