how to select radio buttons option while uninstalling in windows - knife

I want to uninstall a software in windows using chef .While uninstalling ,there are 2 radio buttons , one for modify and other for remove .By default modify is selected , but my requirement is to select remove option.
How to do so .. ??
Can anyone help me out in this issue.
I tried doing the below method.
windows_package 'Some software' do
action :remove
end

What you see on the GUI is not necessarily the "phrase" you need. If you look at the documentation for windows_package, you will see that the action you want is remove.
windows_package 'Whatever' do
action :remove
end

Related

How to stop backgrounddownload exe

As per attached screen shot BackgroundDownload.exe is running in background and consuming lots of internet data. How it can be stopped?
This however does not stop VS from recreating BackgoundDownload.exe in 'random' temp directories and trying again. There must be some other missed option. Perhaps disabling the scheduled task in 'task scheduler' would finalize the change.
Through control panel, or other means,
open 'Task Scheduler'. in the navigation pane on the left side, navigate to
"Task Scheduler Library>Microsoft>VisualStudio>Updates"
when there, you will see a task named 'BackroundDownload'
Right click on this task and either disable, or delete it.
Please check if its checked “Automatically download updates” in VS2019?
Uncheck it.
Tools->Options->Environment->Product Updates->Automatically download updates
The same update process initiated by from Visual Studio Code. You can disable it via settings menu (and do not forget to uncheck sending telemetry)
It's possible to turn background downloading off for all installed Visual Studio products by creating/changing a registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup\BackgroundDownloadDisabled = 1
Source: https://developercommunity.visualstudio.com/t/visual-studio-background-downloader-keeps-running/948890#T-N950950
Please go to your connectivity setting I mean I am using my hotspot from mobile.
go to your wifi icon on windows 10.
then select properties and it will take you to another screen.
there is toggle switch called metered connection. select it .
That's it if wants to download also it cannot.
As a default windows does not allow you to download any updates in background.
You can do it when you are want. .[Step 2][2]
there is another way
Open Windows Defender Firewall With Advanced Security from the search next to Start
Then click on (( Outbound Rules -> New Rules ))
Now a new page will open, click ( Program ), then click (Next)
Now click on (This Program Path)
And enter this URL :
(%ProgramFiles% (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\BackgroundDownload.exe)
Now click Next again and select Block The Connection on this page and click Next again
Do not touch anything on this page (Profile) and click on Next
Finally, select a name in the (Name) field and write a series of descriptions if needed

Install shield undo never show dialog

I checked a "Never show dialog" Checkbox in Install Shield.
How can I reset this?
I suspect a registry key but have been unable to locate the correct one.
The setting should be available in Tools > Options, but as you suspect it's also stored in the registry. Try looking for values under `HKCU\Software\InstallShield\##.#\Professional.

how to show EULA during upgrade using installshield

the EULA window is enabled through the Interview panel in Installshield 2011, and it works fine when installing the program first time. However, it won't show in the dialog sequence when we do the upgrade.
I guess it is a default behaviour in Installshield, is it possible to show it all the time? is it wise to do so?
You can Launch Eula window (License Agreement dialog) or custom dialog anytime you want.
When upgrade, launch Eula Dialog from NextButton on SetupResume Dialog, move another conditions to Next Button Eula Dialog, if using License Agreement dialog you must add another conditions "Not Installed" to old Eula Dialog conditions
Next Button Events For License Agreement Dialog will be like this:
Event: NewDialog,
Argument: LicenseAgreement,
Condition: Not Installed
Event: EndDialog,
Argument: Return,
Condition: OutOfNoRbDiskSpace <> 1 AND Installed
Next Button Events For SetupResume Dialog:
Event: NewDialog,
Argument: LicenseAgreement,
Condition: 1
I ran into this problem rather recently with InstallShield 2014, and was having a hard time getting the EULA to pop up on the automagic upgrade path even when adding it to the Next button of the SetupInitialization dialog.
I did find a way to make it happen though:
Go into the Behavior and Logic group, select Custom Actions and Sequences. Expand Sequences > Installation > User Interface.
You can right-click and Insert objects into here. From the Insert Action dialog, select Dialogs in the first dropdown. Then select the EULA-displaying dialog (LicenseAgreement in my case). That will insert it into the UI portion of the Installation Sequence.
From there, you can drag it to where you need it. I dropped it in right after SetupInitialization, but you can also drag it down to just after the PatchWelcome / InstallWelcome / SetupResume / MaintenanceWelcome UI components.
If you do this, you'll want to go to your InstallWelcome dialog (normal installation) and make sure that you skip the EULA there in order to avoid showing it twice. Setting the target to ReadyToInstall (the next step of the LicenseAgreement in my case) allowed me to do that.
That said, doing this means that the EULA will come up every time the installer runs. Ensure that this is what you really want to do.

Add AskPath Dialog Installshield

How could I make prompt of the AskPath Dialog in my Installshield project ?
I explain :
When the user select Custom install, he could select the features and the destination path. But when he clicks the default install, it will install the progam to the default location. How could I make the 'Selection destination path' visible/prompt even the user select the default install ?
Thank you.
You would need to tweak the Next button control's event. Depending on various conditions, the next dialog is appropriately chosen. Modify the NewDialog control event to the argument "DestinationFolder", for the condition corresponding to "Default" install option.

Installshield, getting the "CustomSetup" Dialog to not display icons from features

I have a "CustomSetup" screen, which is pretty generic with my installation.
When popping in the CD, after a few dialog boxes, I get to the CustomSetup screen, which gives me the ability to install or not install features of my program. This is great, however, I really only need to be able to have two choices which already exist. I don't need the others, and would not like to be able to see them or be able to select them.
I googled my little heart out to no prevail.
Anyone have experience in disabling these options?
Thanks
If you're using InstallShield, you can go to the Features view, and on the feature you want to hide, locate the General | Display option, and select "Not Visible". Next, locate General | Required, and change it to "Yes".
If you want to prevent the Custom Setup screen from showing up at all, the easiest way to do this is to click on the "Project Assistant" tab of your InstallShield IDE, and then click on "Installation Interview", and select "No" next to "Do you want users to be able to selectively install only certain parts of your application?"
Hope this helps,
Bryan

Resources