checkbox,task,inno-setup , Innosetup task Page edit


Innosetup task Page edit

Question:

Tag: checkbox,task,inno-setup

I want to edit the task page in inno-setup and make checkbox for:

I have Tried-

  [Tasks] 
 Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} 
 Name: vcredist_x64; Description: Install Visual C++; Flags: unchecked   
  [Code] 
 procedure CurStepChanged(CurStep: TSetupStep); 
 begin 
   if CurStep = ssPostInstall then 
   begin 
   var 
   ResultCode: Integer;
 begin
     if IsTaskSelected('vcredist_x64') then 
   begin 
       Status.Caption:='Installing Visual C++...';    
       Exec(ExpandConstant('{src}\Redist\vcredist_x64.exe'),'/q',false)

But it showing some error Identifier expected

I am very new to inno-setup and here (stackoverflow.com). Can anybody help me. Thanks in advance.


Answer:

THIS IS THE ANSWER FOR MY QUESTION

THANKS AND CREDIT GOES TO "TLama"

Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{49AA44CB-55C1-47D3-9B89-84D4A1271A8D}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename=Setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: english; MessagesFile: compiler:Default.isl
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon};GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
Name: vcredist_x64; Description: Install Visual C++; Flags: unchecked

[Files]
Source: C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe; DestDir: {app}; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}
Name: {commondesktop}\{#MyAppName}; Filename: {app}\{#MyAppExeName};Tasks: desktopicon

[Run]
Filename: {src}\redist\vcredist_x64.exe; Parameters: /q; StatusMsg: Installing Visual C++...; Tasks: vcredist_x64

Related:


Checkbox arrays


javascript,arrays,checkbox
Just wondering if anyone can help. I currently have code like this: <section> <span class="tags"></span> <label for="shoes">Shoes</label> <input type="checkbox" id="shoes"> <label for="jeans">Jeans</label> <input type="checkbox" id="jeans"> <label for="tops">Tops</label> <input type="checkbox" id="tops"> </section> <section> <span class="tags"></span> <label for="monkey">monkey</label> <input type="checkbox" id="monkey">...

listview with checkbox get selected row index


c#,wpf,listview,checkbox
here is my problem , i have a listview with checkbox , and i want to get the index of the row which is selected i want to get the index of the row to disable this row after validation i try different method CheckBox cbx = sender as CheckBox.tag;...

if Html.CheckBox is checked or not


javascript,jquery,html,checkbox
I have a simple question regarding html.checkbox Using this as an example: @Html.CheckBox("IncreaseStock", Model.IncreaseStock == null ? false : (bool)Model.IncreaseStock) now doing a alert to see if the checkbox is tick or not: var IncreaseStock = $('#IncreaseStock').val(); if (IncreaseStock == true) { alert("true ") } else { alert("NOT TRUE") }...

.Net Task class - please explain


c#,.net,asynchronous,async-await,task
Can someone please explain why the public async Task DoStuff() method below can still work without returning anything? It doesn't say void, so I assumed the return type would have to be Task. When I remove the async and await keywords from the DoStuff() method, the compiler gives me a...

How to disable checkbox with jquery?


javascript,jquery,checkbox
I searched more time with it but it's not work , I want to checkbox is disabled, user not check and can check it if some condition . Ok, now , i trying disabled them.I use jquery 2.1.3 <input type="checkbox" class="checkbox1" id="chk" name="check[]" value="U01" />Banana <input type="checkbox" class="checkbox1" id="chk" name="check[]"...

php error in getting multidimensional array through checkbox and textboxes of same row or multiple rows


php,arrays,checkbox,multidimensional-array
i want to fetch multiple textbox values corresponding to the checkbox selected... we can select one or multiple checkboxes at a time and on button click the output i need is like this: suppose my array is like this: array1('first','second','third'); array2('a','b','c','d','e','f','g','h','i') . and output i need is:- first,a,b,c second,d,e,f third,g,h,i...

Communcate with object inside a Task


c#,multithreading,task
I want to know how or even if its required in my case to communicate with an object running inside a Task. I have a collection of processes, which are generic objects that perform some long running monitoring and calculating: private IEnumerable<IService> _services; Since they are based on a common...

how do i make checkboxes like radio button


javascript,jquery,checkbox
I'm having difficulty using jQuery to make the checkboxes act like radio so I can only check one of the three checkboxes <legend>Choose your delivery option!</legend> <label> <input type="checkbox" id="delivery" name="delivery" value="standard" /> Standard Delivery </label> <label> <input type="checkbox" id="delivery" name="delivery" value="2day" /> 2 Day Shipping </label> <label> <input type="checkbox"...

Get and display checked checkbox index


javascript,jquery,html,checkbox
I'm trying to display the checkbox position when the user check the checkbox every time using Jquery. For example, when user check Monday, it will display position 0 and when user check Sunday, it will display position 6. I could not find a way to do it. I have tried...

JavaScript & Checkboxes - More efficient way of storing values of each checkbox?


javascript,jquery,checkbox
Is there a more efficient way of storing my checkbox values? Each checkbox has an assigned value, I was wondering if there was a better way of storing these values (destinationoflink1,2,3,etc)? perhaps store them as an array and call them?...although I am unsure HTML page extract: <form> <label for="checkbox1">Link #1</label>...

Having problems while trying to delete single rows from a custom ToDo list?


android,android-fragments,checkbox,android-studio
I want to delete selected rows from a todo list by clicking on the checkbox and deleting them trough the delete button, for that I am within my custom adapter setting a setOnCheckedChangeListener on my checkbox and setOnClickListener on my delete button, now keep in mind that the delete button...

Proper way to handle a group of asynchronous calls in parallel


c#,parallel-processing,async-await,task
I have a console app that calls a web api and gets a list of services. It then loops through and makes calls to each service. I have the following: static int Main(string[] args) { ... Task.WaitAll(Process()); } private static async Task BeginProcess() { using(HttpClientHandler handler = new HttpClientHandler()) {...

Gulp task runs much faster without 'return' statement - why is that?


build,return,task,gulp
Gulp task formed like this (without return) runs much faster: gulp.task('less', function () { gulp.src('./less/**/*.less') .pipe(less()) .pipe(gulp.dest('./destination')); }); than the same one with return: gulp.task('less', function () { return gulp.src('./less/**/*.less') .pipe(less()) .pipe(gulp.dest('./destination')); }); So, my question is what does Gulp task is supposed to return? Why is it so much...

Multiple checkboxes filtering using filterrific


ruby-on-rails,checkbox,filterrific
I have 4 checkboxes using the same scope. It's used for filtering the house with certain number of bedrooms. The last checkbox stand for "4 and more" bedroom <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '1', nil) %> <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '2', nil) %> <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '3', nil) %> <%=...

Check a checkbox in a table row where a “delete” icon has been clicked on using JQuery


jquery,checkbox
First, I'd want to tell that i'm not a native speaker so please forgive me my mistakes. Also, this is my first time posting here. Here we go. I've searched for days everywhere (especially here) the mistakes i could have made in my code. It's probably a very stupid...

How to add checkbox to uicollectionview in swift


swift,checkbox,uicollectionviewcell
some time ago someone already asked this question and a few answers were given but i didn't really understand any of them. So i was wondering if anyone could please write an easy to understand tutorial on how to do the things shown on the image below: http://i.imgur.com/BzIBOkH.jpg?1 I would...

How to change checkbox follow JSON string?


javascript,jquery,ajax,json,checkbox
I want to change checkbox follow JSON string . But i don't know how do it . This is me JSON string, "1" is mean checked and "0" is mean unchecked [{"Group_Product":"G04","Orange":1,"Banana":0,"Apple":1,"Candy":0,"Food":1}] And html code. <table id=table_product> <tr><td><input type="checkbox" class="checkbox1" id="Orange" name="check[]" />Orange</td></tr> <tr><td><input type="checkbox" class="checkbox1" id="Banana" name="check[]" />Banana</td></tr> <tr><td><input...

Make Check box is checked


php,checkbox
How can I make my check box is checked using PHP, when i visit the page later i want previously selected check boxes are checked <input name="product[]" type="checkbox" value="1" /> ...

aligning hierarchical checkboxes


html,css,checkbox
I am not good with CSS. I am not sure how to align checkboxes in columns with their child checkboxes underneath as a hierarchical representation. Example, I have countries and their respective states to be shown in a hierarchy but in columns as shown in the image below. I am...

Load page and input values


javascript,checkbox
Is it possible somehow to open url, without loading it. Let me explain, I'm creating check-box which will let to create new log and automtically input values. I know how to take boxes and input value into them using javascript. But i don't know how to open that page without...

with an input checkbox inside a table row, can i add click event to row and still be able to click input


javascript,jquery,html,checkbox
I have a table: <table> <tr> <td>Something</td> <td>Something Else</td> <td><input type='checkbox' value='clickme' id='yes'></td> </tr> For the user, if they click the row, they get more data about the row, and if they click the checkbox, they are presented with some other options. how can i listen for each event in...

css checkbox checked material design overlay


javascript,jquery,html,css,checkbox
I'm trying to do some fancy material design like checkboxes but I got stuck at applying an overlay when the checkboxes are checked. Here is an example of what I have done so far: http://codepen.io/stefancenusa/pen/rVwEBB input[type="checkbox"]:checked + label { /*what should i write here?*/ } What I intend to do:...

Rails 4: Save Checkbox Results to Serialized Array


ruby-on-rails,ruby,ruby-on-rails-4,checkbox,form-helpers
I have a Campaign model with a channel column. This channel will store a serialized array of chosen results via checkboxes. Here's the model.. app/models/campaign.rb class Campaign < ActiveRecord::Base serialize :channels, Array end app/controllers/compaigns_controller.rb class CampaignsController < ApplicationController def index @campaigns = Campaign.all.order("created_at DESC") end def new @campaign = Campaign.new...

android checkbox drawable crashing app


android,checkbox
i'm kinda new to android and i am following other questions and answers on stack overflow and i feel like i am getting close, But i can't get it to work. when i tried it crashes my app. just to test it's functionality i am using and and my code...

How to get checked checkboxes number with JS/HTML?


javascript,html,checkbox
I want to add a JS function in my HTML, when more than 0 checkboxes are checked, will be display a dark window in website top with actions to do (case it's bigger than 1, no function will be occurred). And when there're no checked checkboxes (lower than 1), the...

JCheckBoxes not being disabled after I setEnable(false) them


java,swing,checkbox,jframe,enable-if
If have 30 checkboxes and I don't want more than 6 of them to be checked. I have an int keeping track of how many are checked. Each box has an item listener which calls a method to see what that int is at, and if it reaches 6, the...

Laravel 5 not storing checkbox value


php,laravel,checkbox,laravel-5
We are having a strange issue with Laravel 5 in that it is refusing to store the checkbox value. We are adapting the existing registration form that comes bundled with Laravel 5 and we are adding an optin checkbox but it seems the model does not recognise this as a...

how to store all checkbox values in array in php


php,arrays,checkbox
i m trying to store checkbox values inside variable $days but when i store this value to database it just store the last selected checkbox inside the database... please help me to sort out the code so i can get all selected values <?php if (isset($_POST['days'])) { foreach ($_POST['days'] as...

How to make TDBCheckBox update its DataField immediately after click?


delphi,checkbox,event-handling,delphi-xe3,data-aware
I have a form with several controls where the first one is a TDBCheckBox that is bound to DataField := 'enabled'. When the checkbox is clicked I want all the remaining controls to be enabled / disabled. procedure TMyAdapter.DataSourceDataChange(Sender: TObject; Field: TField); var Enabled: Boolean; begin Enabled := FModel.DataSet['enabled'].AsBoolean; FView.Label1.Enabled...

Can I uniquely identify 2 check boxes so that I can add a different image to each?


html,css,asp.net,checkbox
Currently I am using an image for checked and unchecked checkboxes the html and css is below. <div class="text-field-box text-field-box-mobile radio-button-box small"> <asp:CheckBox ID="ChkOffer1" text=" " runat="server" class="checkbox checkbox-mobile radio" Visible="true" EnableViewState="true"></asp:CheckBox> <% Response.Write(Session("Offer1"))%> </div> and css input[type=checkbox] { display:none; } input[type=checkbox] + label { background-image: url("checkbox-default.png"); background-repeat: no-repeat;...

Add a “Select All” checkbox to lists of checkboxes that update an array of objects


javascript,jquery,checkbox,d3.js
I have two lists of checkboxes (there will be additional lists later), for example: <ul> <li><input type="checkbox" onchange="handleChange()" name="job" rel="it-manager" value="IT-Manager" id="IT Manager" class="selectedId" checked> IT Manager</li> <li><input type="checkbox" onchange="handleChange()" name="job" rel="consultant" value="Consultant" id="Consultant" class="selectedId" checked> Consultant</li> </ul> <ul> <li><input type="checkbox" onchange="handleChange()"...

Event on dynamically created checkbox asp.net


c#,jquery,asp.net,table,checkbox
I started to programming with asp.net, I have a table with some checkboxses. The problem is, I can't create static tables, because this action is linked with some parameters. Anyway.. When I click on the First checkbox I want to invert the other checkboxes in this table. How can i...

Prevent a read-only checkbox from calling a event handler?


jquery,asp.net-mvc,checkbox,checkboxfor
I have a list of checkboxes with the same syntax below, some of them are read-only: @Html.CheckBoxFor(model => model.SrsSettingList[i].LeftPickup, new{ @class= "chkSRSPickup"}) First I want to mention that I cant use "disabled" atrribute in this case. Please dont tell me to do that. Below is my event handler when I...

AngularJS, ng-repeat, checkboxes and toggleAll


angularjs,checkbox,angularjs-ng-repeat,toggle,ionic-framework
There's no question. Searching over the internet, you can easily find examples with how ng-repeat and checkboxes work. All these examples include only few checkboxes. But, have you tried to create several hundred checkboxes, then use some toggle button to check/uncheck all checkboxes? The app becomes totally unresponsive. In browser...

FX - Suggestions for aligning CheckBox in Grid


java,checkbox,javafx,grid,alignment
Converting from Swing to FX here. We have some CheckBoxes where the Label appears on the left side of the CheckBox. We are accomplishing this by calling setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT); The problem is that in some GridPanes, we'll have a Label in column 0 with a Node in column 1 on row...

select all checkbox and have the value of checked checkbox to 'on' jquery


javascript,jquery,html,checkbox
This is my fiddle for selecting from 3 checkbox. I want to have the value of selected checkbox to on while the unchecked are value off. I write the default value to off and tried to change the value of checked to on. Any suggestion is appreciated

How to get value of checkbox in table?


javascript,jquery,table,checkbox
How i can get value of checkbox in table , I want use for in this case in order get parameter.Now , please see html table <table id="div_func" class="table table-bordered" style="width: 100%"> <thead> <tr> <th> <input type="checkbox" id="chk_all" /></th> <th>Name</th> </tr> </thead> <tbody> <tr> <td> <input type="checkbox" class="checkbox1" id="chk" name="check[]"...

Create an exception-converting dynamic proxy that works with tasks


c#,task,castle-dynamicproxy
Problem I'm somehow running in circles... I try to create an interface proxy with target using Castle Dynamic Proxy. The proxy should Return the return value of the invocation if no exception is thrown (i.e. do nothing). Throw new InterceptedException if the invocation throws an InvalidOperationException. Throw e if the...

Executing more than 1000 HTTP request tasks fails


c#,concurrency,task-parallel-library,httprequest,task
I'm trying to load test an API. I'm executing a tasks at the same time, each executing an HTTP request. I use Task.WhenAll(mytasks) for waiting for all tasks to be finished. The requests look as follows: using (var response = await client.SendAsync(request).ConfigureAwait(false)) { using (var jsonResponse = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) {...

Javascript - return dynamic row data with checkbox input


javascript,forms,select,checkbox,tabular
I seem to only be able to find the answer to this problem in JQuery and I would really like a pure JS solution. I have a dynamically generated table that I build from a parsed JSON file. I added a checkbox for each row. My question is, do I...

Checkbox exclusion on DIV click


jquery,html,css,checkbox
I have a simple div container, with a formatted <ul><li> inside to display contact information. When you click on the div it will take you to the page to show their profile. This is working fine. However, is there a way I can make it so that the checkbox is...

sortable check boxes with a tag


javascript,jquery,html,jquery-ui,checkbox
hi bit of a noob to this, but is it possible to have 3 check boxes and hide my a tag when one is checked but the if checkbox 2 is checked it hides that as well then when you uncheck checkbox 1 it will still stay hidden if the...

WPF CheckBox CheckChanged event


c#,.net,wpf,events,checkbox
After Checkbox.IsChecked = true, the Checked event is fired. After Checkbox.IsChecked = false, the UnChecked event is fired. But what event is fired after IsChecked = null?

C# get object from asyncron task


c#,task
i just startet thread programming in c#. And I realy dont know if this is the right community to ask questions like that. If not, im sorry. I have two functions, start() and status(). In start() I create an new task like: start() { for each(dir => ListOfAllDirs) { new...

Filter by checkbox show/hide div link jquery


javascript,jquery,html,css,checkbox
I have my jquery checkbox filter that works by showing/hiding the div, when I added an <a href="#"></a>the checkbox no longer shows/hides the div 2 of the div's are links to demonstrate, the other 2 purposefully not links to show they work. Question is what needs to be added to...

ForEachAsyc with Result


c#,linq,task-parallel-library,task
I'm trying to change Stephen Toub's ForEachAsync<T> extension method into an extension which returns a result... Stephen's extension: public static Task ForEachAsync<T>(this IEnumerable<T> source, int dop, Func<T, Task> body) { return Task.WhenAll( from partition in Partitioner.Create(source).GetPartitions(dop) select Task.Run(async delegate { using (partition) while (partition.MoveNext()) await body(partition.Current); })); } My approach...

checkbox updating another checkbox on different form


javascript,checkbox
my first javascript is not working, hope you can help. I am trying to make a checkbox on one form check a checkbox on another form. This is based on this link: check/uncheck checkbox based on another checkbox Here is my simplified code <formname="A" action="WebPage.php" method="POST"> <input type="checkbox" name="Aa" onchange="update()"...

Why is the task is not cancelled when I call CancellationTokenSource's Cancel method in async method?


c#,asynchronous,task,cancellationtokensource,cancellation-token
I created a small wrapper around CancellationToken and CancellationTokenSource. The problem I have is that the CancelAsync method of CancellationHelper doesn't work as expected. I'm experiencing the problem with the ItShouldThrowAExceptionButStallsInstead method. To cancel the running task, it calls await coordinator.CancelAsync();, but the task is not cancelled actually and doesn't...

Why is Task not co-variant?


c#,task,covariance
class ResultBase {} class Result : ResultBase {} Task<ResultBase> GetResult() { return Task.FromResult(new Result()); } The compiler tells me that it cannot implicitly convert Task<Result> to Task<ResultBase>. Can someone explain why this is? I would have expected co-variance to enable me to write the code in this way....

Passing checkboxes values to view in django


django,checkbox,django-templates,django-views
I have a table with some database data <table id="id_list_table" class="table table-condensed"> <caption>Inputs list</caption> <thead> <tr> <th>#</th> <th id="input">Input</th> </tr> </thead> <tbody id="fbody"> {%for input in InputsAll%} <tr> <td>{{ input.input }}</td> <td> <a class="btn btn-primary btn-xs" href="{% url 'edit' %}?input_num={{input.id}}" id="edit">edit</a> <a class="btn btn-danger btn-xs" href="{% url 'delete'...