Inno Setup: Control panel icon does not show - windows

I have an Inno Setup project. Everything is fine, but I do not see the application icon in the "Programs and Features" control panel area. I do see the icon everywhere else.
The script file does have the following:
[Setup]
SetupIconFile={#MySetupImageIco}
Is there something else that I need to set to get the application icon to show in the Programs and Features control panel applet? I am testing against Windows 8.1.
UPDATE:
Based upon comments, I tried setting in my script:
UninstallDisplayIcon={#MySetupImageIco}
Sadly, that did not yield the icon in the Add/Remove aka Programs and Features Control Panel applet.
UPDATE #2:
The winning solution is:
UninstallDisplayIcon={app}\{#MyAppExeName}
Naturally, there has to be a #define MyAppExeName "whatever.exe" above that at the top of the script. Interesting that when I specified the path to the ico file, I had no success. Inno Setup for Windows 8 and 8.1 wants what I just said. Windows 7 works with UninstallDisplayIcon and specifying the path to the ICO or without that, just Windows 8 and 8.1 are a bit different.

Solution is:
Add
[Setup]
UninstallDisplayIcon={app}\{#MyAppExeName}
Specifying the actual ico file did not work, but this entry did.
I tested against Windows 8/8.1. Windows 7 works without this line.

I can confirm this as a working solution too (Win7 x64):
[Setup]
UninstallDisplayIcon={uninstallexe}
What I really love here it's independent to app name etc. Just pure alias to uninstaller.
Found at https://dutchgemini.wordpress.com/2011/05/03/innosetup-and-the-missing-uninstall-icon-on-windows-7

In Windows 11, you can use the icon file itself.
UninstallDisplayIcon=C:\Path\to\ico\file
does the thing.
Worked for me.

Add
It should be
UninstallDisplayIcon= {app}ForwardSlash{#MyAppExeName}
I tested it against Windows 10 latest build.

I had a problem with your #MyAppExeName solution because I use the OutputBaseFilename directive. A more elegant solution is:
UninstallDisplayIcon={srcexe}

Related

Which tool is compatible with windows 10 for extract windows element for window gui automation

Which tool is compatible with windows 10 for extract window element for window gui automation tools like winAppdriver, winium, appium window automation etc
Many are listed in below URL:
https://github.com/blackrosezy/gui-inspect-tool
But most of them showing virus or dangerous by system.
I am not able to found any link where from I can download authenticate tool which can extract window element for window 10 specially.
Any reference will be helpful
UIAVerify is also useful, and doesn't suffer from the strange pauses that block Inspect.
It's also part of the Windows 10 SDK, installed in a folder of the same name.
The .EXE is called VisualUIAVerifyNative.exe
Download the window development kit from below URL:
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
Working download URL for now:
Click Here
Refer below link and refer #raffamaiden answer and download both package
How to install the Inspect tool on Windows 10?
Now open your related system package only, in my case it is x64, wrong pacakge will give error
C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64
OR
Go the windows kit folder and find inspect.exe or accevent.exe, I personally like inspect more than accevent.exe
UI-Spy also works fine, to extract elements form Windows apps

How to control what is shown in Windows 10 "recently added" programs list?

The Windows 10 start menu will show recently added programs after you run an installer.
In my case, the installer installs more than one program to Start Menu. For some reason it is picking one of them and showing it as "recently added", but I'd like to specify that a different one shows up there.
How can this been set / controlled?
I have tried to change the order which the installer adds entries to the start menu, but that didn't appear to have any effect.
I'm not sure how Windows internally tracks this, but at least if you are using Inno Setup it is possible to disable tracking the installed program as recently added by using a flag:
excludefromshowinnewinstall
Prevents the Start menu entry for the new shortcut from receiving a
highlight on Windows 7 and additionally prevents the new shortcut from
being automatically pinned the Start screen on Windows 8 (or later).
Ignored on earlier Windows versions.
Ref.: https://jrsoftware.org/ishelp/index.php?topic=iconssection
So it should be possible to apply this exclusionary flag to all but the program which is intended to be shown in the list.

How can we make a ftp link open in windows explorer on Windows?

Been trying to find a way to do this for a while.
Opening a link in an windows explorer window instead of a browser.
For example using this link : ftp://username:pass#ftp.domain.com:80
And opening it in Windows Explorer.
Is it possible to dictate how windows should react when clicking on that link in a email ?
Thank you Fabian H!
Your solution works fine for me :-)
I made just a small change to your code, infact I wrote:
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\explorer.exe" %1
Instead of:
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\\explorer.exe %1"
This second one didn't work for me :-(
But now I can finally enjoy using explorer.exe as the default FTP Client!!
PS:
Tested on WIndows 7
Save these lines in a file with a file name ending .reg and double klick the file:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\\explorer.exe %1"
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\ddeexec\Application]
#="Explorer"
Tested on WIndows 8.1 64bit.
Thanks to Perneel for his link.
The Windows registry keys shown before didn't work for me, but this works:
HKEY_CURRENT_USER\Software\Microsoft\FTP
Use Web Based FTP = "yes"
Just change value to "no".
(Windows 7 Pro x64)
I was fumbling around looking for how to do this and I ultimately decided to go with the "Add Network Location" wizard method as described here by "nhinkle".
However after doing so, I got a link that generated this shortcut:
ftp://MYFTP_LOGINID#FTPADDRESS/Some/Folder/Navigation/&Stuff/
More what it actually looks like:
ftp://123445_65432#78.13.223.184/root/main/servers/current/
Then was prompted for my login credentials, and thats it. Does not open in Chrome and I just did Send To > Desktop (shortcut) and moved that shortcut to the folder I wanted it in. Now I can open the FTP location from explorer by hitting the link instead of typing the address into the address bar, and it is not opening up in any internet browsers.
I only have one ftp account, dont know much about any background magic that the wizard may have done regarding registry/etc, and I feel like deleting the shortcut wont really undo any of that if it did happen, so if someone could test this and confirm whether or not it works, that'd be great.
Just my 2c :)
HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice
Check it out, i got the above answer working by deleting this entry
For regularly used FTP sites, if you don't want to make registry edits, create a shortcut using the following format and your site will open in Windows Explorer.
%windir%\explorer.exe ftp://

Change the taskbar settings programmatically?

I want to change the settings of my taskbar with a small batch file or java programm or whatever.
So I want to know, if there is a registry key containg this information.
Does anybody knows, where Windows sets taskbar settings?
Edit: No, I don't want to annoy the users with changing taskbar settings on every boot.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
and 64 bit eqivalent?
TaskBarCmd seems to do the job. It includes C++ source code. It uses the IBandSite COM Interface. Haven't tried the source, but the compiled version seems to work.

How to select a theme programmatically in Vista

A software package I'm working on installs its own Windows theme and as part of the install tries to make it the current theme. We managed to get this working on Windows XP with a great many registry edits during the install (a reboot applies the changes) but Vista seems to require even more reqistry changes.
We also found that "running" the theme file will open the Themes dialog and select the theme but a user needs to click OK. A script could accomplish this, true, but finding the OK button on non-English Windows is a challenge I'd rather not have to address.
So, is there a way to programmatically change the current theme in Windows Vista?
Sorry to necro an old thread, but I still see this question around the internets.
Windows is still not very far removed from its DOS roots. You can shell this command to open the control panel and load your theme.
This works for Windows 7, but can be modified for Vista. Just shell this, or type it into a command window:
C:\Windows\system32\rundll32.exe C:\Windows\system32\shell32.dll,Control_RunDLL C:\Windows\system32\desk.cpl desk,#Themes /Action:OpenTheme /file: SomeDir\themename.themepack
Basically, just use rundll32 to run the control panel, and then feed it your theme. You will get a control panel dialog pop up, but the theme will install automatically.
If you want it to install a theme without a dialog popup, you are going to need to do the massive registry hack.
Here's a dirty hack:
If all else fails, you could try UI Automation Toolkit to automatically "click" on the OK button. :)

Resources