Hi, I have written the code for my wix project, as it is indexed and removes the scheduled task at installation or uninstall. But I want to give users an option during the installation where they do not enable or disable the job. My code shows the options till now, but still works when I select Disabled
There is a feature level 1 for your defined work, your install level is going to be 1 or more, so this feature will always be installed. When your user selects an option, then it must be changed to
. This is your code in better coding.
& lt; Component ID = 'Scheduled Tasks' = '{ABDBFC-5-FFDD-4DC 9-92FF-DD9C7A5D4880}' Kept = 'Yes' & gt; & Lt; File source = "../../ apps / bin / release / swu.exe" & gt; & Lt; / File & gt; & Lt; / Component & gt; & Lt; Feature ID = "Swasted Password" title = "Create a Scheduled Task" level = "1" Absent = "Allow" Special Default = "Install" Details = "SWU creates scheduled tasks for the application and configures" display = " Expansion "Allow Ad Change =" No "& gt; & Lt; ComponentRef Id = "Scheduled Tasks" /> & Lt; / Feature & gt;
Comments
Post a Comment