I added an activeX control that allows me to display an animated gif on a visual basic 6 form to show an ajax style progress spinner. When I run this application on Windows 8 Pro x64, the spinner image will not appear. If I run my application as Administrator, it then appears. I do have a manifest with this program which executes as invoker, I don't want to require this application to have admin rights.
Any ideas as to why an animated gif activeX control would require admin rights and if there is a better way to show something like a simple spinner animated gif?
Thank you.
Thank you Euro Micelli - the Process Monitor was a great idea. It was a UAC conflict that I was able to resolve by modifying the source of the ActiveX control which I discovered I had with the component used. The component was programmed to use App.Path which obviously didn't work when installed in the Windows System32 folder. I coded it to use the Windows Temp folder and it now works.
Related
I'm creating an installation program for my VB.NET application; after install my application I get the icon on my desktop with the right icon image and open the right application but when I right click on the shortcut --> Properties the "Open location" button is grayed out.
There's a way to create a regular shortcut with all the buttons enabled?
Second, my application is being installed inside Program Files(x86)\Microsoft\MyApp, there's a way to specify a directory outside program files?
I need to write log files and that directory needs that the application runs as Administrator to do that.
I created the installer by adding an Assisted Installation project to my application project.
I tried by using MyAppSetup.exe and the msi package too with the same results.
I have designed a calculator-like app using mahapps metro in VB. It works perfectly. I added both a .jpg and .png image to my Resources file, and add it within my xaml file, and it shows perfectly. Though when I press the "Start" button to test my program – it doesn't show the image in the app. I've read on here that if I change the build state to Resources, then it should appear. Though when I do that, I get some permission access error. Not sure where to go from here.
The original poster said:
I fixed it with uninstalling Visual Studio 2013, and installing it again. Likewise, in Resources folder -- I found my image, and set that build action to Resources, and it showed up on the debug/release build. I left the MainWindow.xaml to Page as a build action.
Using Visual Studio 2012, I manage to publish a Winforms application and install it successfully on other machines, making it work nicely. Although, there are a few small details that I want to change.
The published application goes into the Start Menu inside a folder named after me. I suppose it's taking my Windows user name, I don't set it anywhere, it just happens by default. I wish I could define that.
(EDIT)
I solved the above issue: Project properties > "Publish tab" > Options and set the Publisher name: this is the name of the folder
(end edit)
When I look for the program in Control Panel > Programs and Features, it has a weird default icon instead of the one I defined (which appears correctly on the Start Menu)
So, how to set my icon on the Programs and Features as well?
(EDIT) -
I'm using ClickOnce apparently (thanks to #Crono)
Thanks
For changing application icon in Programs and Features, this answer might help you: Custom icon for ClickOnce application in 'Add or Remove Programs'
The trick is in adding a registry string value DisplayIcon pointing to the icon file. The value is located under Uninstall registry key of your application.
I created an Outlook addin. It does nothing special, just adds a menu with one menu item. I followed the installer creation tutorial from http://blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-2-of-2.aspx.
It installs and works properly on a normal windows desktop installation, but I cant figure out how to do it in a Citrix XenApp environment. I can install it using the installer in the same profile where the Outlook is installed successfully. But when Outlook is run, it is in the "Inactive Application Addins" section when I view it from the Trust Center menu, and it wont activate properly. If I open the Manage COM Addins menu, it displays "Load at Startup" as my addin's Load Behavior. If I try to activate it manually from this menu, nothing happens, and if I open it again, Load Behavior will change to "Not Loaded. The Managed Add-in Loader failed to initialize."
Anyone encountered this or something similar before? Thanks in advance.
If it's installing but inactive then it's probably throwing an exception upon startup.
I'd wrap all of your startup code (ThisAddIn_Startup function inside your ThisAddIn.cs) inside a try {} catch {} and log all errors out to disk so you can see why outlook is disabling your addin.
Have you tried setting the VSTO_SUPPRESSDISPLAYALERTS environment variable to see if you can get outlook to give you more info?
(BTW I have found outlook VSTO's to be flaky. Sometimes they just refuse to install and work.)
I have created application installer using Wix. I have a ProgressBar control present on the screen with copying files etc. When UAC is enabled, after this screen appeared, it freezed for a 10 or more seconds and then UAC prompt is displayed : "Do you want to allow the following program to install software on this computer?".
My question is:
how to make progress bar move during waiting for UAC prompt to be displayed? Or how to force UAC to be shown faster (< 5 seconds)?
Thank you.
Probably the only approach that will help is splitting your installer into several exes (or a mixture of exes and whatever.) I find that the pause before the first UAC screen depends on the size of the exe. Everything launched from an elevated process is elevated, so if you could get a small bootstrapper going, it should pop the UAC quite quickly, then you can launch the rest from that.