Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

SetupCompleteSuccess


13 replies to this topic

cherukus

cherukus
  • Members
  • 68 posts

Posted 01 February 2005 - 20:52

I need to create a CheckBox on SetupCompleteSuccess Dialog.

If the CheckBox is checked, I would like to open up a text file.

I tried creating the CheckBox by drag & drop the control onto the dialog, but it's not showing up...am I missing something here ???

I am not quite sure on how to handle this ? Appreciate any ideas.

Thanks !!!

Edited by cherukus, 01 February 2005 - 22:51.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 February 2005 - 09:56

I believe there's already an option to display a readme file at the end of installation, whith a check box. Check the Project Assistant view.
If you want to do it yourself make sure the background bitmap has the tab stop flag set and play with the tab order of the controls (they either need to be lower or higher than the bitmap, don't remember exactly)

cherukus

cherukus
  • Members
  • 68 posts

Posted 04 February 2005 - 20:49

I didn't quite understand this -- sorry.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 February 2005 - 10:34

Which InstalLShield version are you using?

cherukus

cherukus
  • Members
  • 68 posts

Posted 07 February 2005 - 18:19

I am using InstallShield Developer 8.0

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 February 2005 - 15:04

There is no Project Assistant view in that version, sorry.

Gareth at Serif

Gareth at Serif
  • Full Members
  • 85 posts

Posted 22 February 2005 - 16:42

I am struggling with a related problem. I require a checkbox on the final dialog for the user to chose if they want a desktop shortcut or not.

I essentially copied the existing elements for the 'Launch Program' checkbox, but while I have assigned a different CA to run if the checkbox is active, I can't see it. The existing checkbox and text are set to invisible (probably so that they're not available during uninstall) but how does the install know to make those existing 'Launch Program' elements visible and how can I apply the same condition to the elements I've made?

Regards,
Gareth

cherukus

cherukus
  • Members
  • 68 posts

Posted 23 February 2005 - 23:12

I was able to display the check box on SetupCompleteSuccess Dialog.

Now the next thing I got to do is, open up a text file if the check box is checked. By default, this needs to be checked. Do I need to write a Custom Action to accomplish this (or) any better ways ???

I found this article : http://support.insta...ticleid=q106070

But I didn't quite understand item # 8. This is what I tried doing :
1. Create a CA named LaunchReadMe
2. Selected the "TYPE" : Launch an Executable and "LOCATION" : Installed with the product.
3. It asks for "SOURCE" : I am not quite sure, what to use here ???
TARGET : Notepad.exe [INSTALLDIR]\ReadMe.txt

Also want to make sure, whether SetupCompleteSuccess Dialog will be displayed only during Install or will it be displayed during uninstall too ?

Thanks !!!

Edited by cherukus, 24 February 2005 - 00:00.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 February 2005 - 09:27

The custom action will only launch executables, not TXT files, and I guess you're not installing notepad.exe.
So you should "path referencing a directory" (type 34) with working directory (source) set to [WindowsFolder] and command line (target) set to Notepad.exe [INSTALLDIR]ReadMe.txt (INSTALLDIR already includes a trailing backslash)

cherukus

cherukus
  • Members
  • 68 posts

Posted 24 February 2005 - 23:05

Stefan,
Are you saying I don't have to create a custom action ?

This is what I did :
Create a Custom Action LaunchReadeMe
Action Type : Type : Set a Directory
Action Parameters : Source : _WindowsFolder_
Target : Notepad.exe [INSTALLDIR]ReadMe.txt

Dialogs -> SetupCompleteSuccess -> Behavior -> OK
DoAction LaunchReadMe 1

Dialogs -> SetupCompleteSuccess -> Behavior -> CheckBox1
DoAction LaunchReadMe 1

By Default the checkbox is selected, if I try to unselect it.
It gives me an Error #1606
Could not access network location Notepad.exe C:\Program Files....\ReadMe.txt

Nothing is happening when I click OK button.

Any suggestions, on what I am doing wrong.

Thanks !!!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 February 2005 - 20:57

You only need one custom action, of type launch exe > path referencing a directory.

cherukus

cherukus
  • Members
  • 68 posts

Posted 27 February 2005 - 03:40

Stefan,
I did as suggested by you, but still it's not opening the Read me file on click of OK button.

These are the actions/events that are listed for OK button :

1. DoAction ISCleanUpSuccess 1
2. DoAction LaunchReadMe 1
3. EndDialog Exit 1
4. DoAction CheckForProductUpdates
ISCHECKFORPRODUCTUPDATES="1" And ISENABLEDWUSFINISHDIALOG And NOT ISREBOOTREQUIRED And NOT Installed And ACTION="INSTALL"
5. DoAction CheckForProductUpdatesOnReboot
ISCHECKFORPRODUCTUPDATES="1" And ISENABLEDWUSFINISHDIALOG And ISREBOOTREQUIRED And NOT Installed And ACTION="INSTALL"
6. DoAction RestartMachine 1

Do you think the placement of these actions list below or not in the correct order ???

Please suggest.........Thanks !!!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 March 2005 - 16:03

I'm not sure about the RestartMachine thing. A verbose log will tell you if/when your action gets fired.

cherukus

cherukus
  • Members
  • 68 posts

Posted 08 March 2005 - 00:17

RestartMachine is for restarting the machine after installing the APP & MSDE.