Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setup an deployment

Setup an deployment

Scheduled Pinned Locked Moved C / C++ / MFC
c++designsysadmintoolstutorial
4 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BoudewijnEctor
    wrote on last edited by
    #1

    Hi, I've posted a meesage like this about a month ago on this forum, but I didn't get any satisfacting responses; so I'll try again. I've created a setup prject, with the "Setup Projects" template, this is for an MFC C++ application. The installer works great, but I want to let the user determine wether he wants a shortcut placedn on his desktop\start menu. So I added a new dialog to my project, containing three checBoxes. But after having done this, I wanted to a some kind of 'link' between checking a checkbox and the creation of a shortcut. If already inserted the shortcuts in the FileSystem tab, but I don't know how to script the decision correctly (I know C and its derivates, not Basic!). I've already looked at the MSDN, but I can't find a nice answer!:mad: The properties of the checkbox are these: (in the user interface editor!) (I haven't included irrelevant properties (irrelevant to me)) CheckBox1Property : CHECKBOXC1 CheckBox1Value : Unchecked

    C 1 Reply Last reply
    0
    • B BoudewijnEctor

      Hi, I've posted a meesage like this about a month ago on this forum, but I didn't get any satisfacting responses; so I'll try again. I've created a setup prject, with the "Setup Projects" template, this is for an MFC C++ application. The installer works great, but I want to let the user determine wether he wants a shortcut placedn on his desktop\start menu. So I added a new dialog to my project, containing three checBoxes. But after having done this, I wanted to a some kind of 'link' between checking a checkbox and the creation of a shortcut. If already inserted the shortcuts in the FileSystem tab, but I don't know how to script the decision correctly (I know C and its derivates, not Basic!). I've already looked at the MSDN, but I can't find a nice answer!:mad: The properties of the checkbox are these: (in the user interface editor!) (I haven't included irrelevant properties (irrelevant to me)) CheckBox1Property : CHECKBOXC1 CheckBox1Value : Unchecked

      C Offline
      C Offline
      CarstensenP
      wrote on last edited by
      #2

      Hi You do not have to script anything to do this. What You do is, create the shortut in the installation project as normal, and in the "Condition" property of the sourtcut write "CHECKBOXC1 = checked". That's it.

      B 2 Replies Last reply
      0
      • C CarstensenP

        Hi You do not have to script anything to do this. What You do is, create the shortut in the installation project as normal, and in the "Condition" property of the sourtcut write "CHECKBOXC1 = checked". That's it.

        B Offline
        B Offline
        BoudewijnEctor
        wrote on last edited by
        #3

        Thanks, I'll try it I didn't know it was that simple!

        1 Reply Last reply
        0
        • C CarstensenP

          Hi You do not have to script anything to do this. What You do is, create the shortut in the installation project as normal, and in the "Condition" property of the sourtcut write "CHECKBOXC1 = checked". That's it.

          B Offline
          B Offline
          BoudewijnEctor
          wrote on last edited by
          #4

          I jsut tried your solution, but it isn't working, although I entered the text (without the double quotation amrks in the conditions field). I tried it with a capitalized c in checked, and put transitive on true and false. No combination of it seemed to worrk --> the shortcut was created every time I tried the installer (it should only be created if the checkbox is checked).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups