This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
gavin_landon
Level 6
- Revenera Community
- :
- About gavin_landon
Jul 06, 2009
05:48 PM
I now see when creating a clone, the ID that shows up.. That explains so much. Thanks again..
... View more
Jul 06, 2009
05:46 PM
Thank you for this clarification.. I've been struggling around the understanding of when and when not to do this.
... View more
Jul 06, 2009
04:31 PM
Thank you for that clarification. - For dialogs in the Dialog Editor that have a dialog ID of 0 (or a blank ID field) When ever I create a dialog or clone a dialog from another dialog, how do I know if it has an ID or not? I never see the ID in the dialog properties. I've only seen the ID in the Dialog Preview, which is always the same ID, so I assumed that was just part of the picture, not really the ID for that dialog.
... View more
Jul 06, 2009
04:03 PM
Are you saying do this: EzDefineDialog( szDialogName, ISUSER, "", DESTINATION_DLG_ID) I went base on the Help.. I was trying different ways.. My original is the numerical ID, but based on me creating a new dialog without cloning and using the same code it works fine. This tells me something weird happening during modifying cloned dialogs.
... View more
Jul 02, 2009
03:04 PM
I've been doing as much as I can, guess this thread is dead.. Just in case someone reads is, I found I only have the error when I clone from an existing. If I create a new one from scratch I dont have this issue.
... View more
Jul 01, 2009
03:26 PM
I've attached a dummy project with no install type files, just a dialog that I clicked edit and then cloan. Renamed it to dlg_Welcome and wrote code for it. This seems to be how it was done in 2009, but maybe I'm missing something in 2010.
... View more
Jul 01, 2009
03:11 PM
Ok, I think it's 2010.... I created a new project with the same Welcome window and it fails.. I then realized that every window that works was created by 2009 and converted by 2010. I'm now dead in the water with any installations, please help.
... View more
Jul 01, 2009
10:22 AM
Ok, here is an update.. I've tried: nResult = EzDefineDialog (szDialogName, ISUSER, "", DESTINATION_DLG_ID); Didn't work.. I copy/pasted the code from my Welcome, changing on the var names from WELCOME_ TO DESTINATION_ and it failed. I then changed the variable, szDialogName = "dlg3_Destination"; to, szDialogName = "dlg1_Welcome"; and it works. So it looked like a dialog issue. I then deleted the dialog and created a new one with the same name, "dlg3_Destination", but nothing custom on it. It also failed. I then renamed from "dlg3_Destination" to "dlg2_Welcome" to see if it's possibly a naming issue, no luck.. I've tried with and without ISUSER.. I've modified the look to be more like how IS does it with other dialogs.. // ensure general initialization is complete if ( !bSdInit ) then SdInit( ); endif; if (EzDefineDialog( szDialogName, ISUSER, szDialogName, DESTINATION_DLG_ID ) = DLG_ERR) then return -1; endif; EzDefineDialog is failing and return -1 occurs. I've tried creating cloaning other dialogs with nothing custom and calling them, they also fail. Its like the Welcome is the ONLY one that works.. I'm so confused..
... View more
Jul 01, 2009
09:21 AM
Ok, that confused things even more.. If I can go without an ID, then what would cause the error? This is the same code, just different name and ID for the other dialogs. #define WELCOME_DLG_ID 12011 szDialogName = "dlg1_Welcome"; #define INSTALL_TYPE_DLG_ID 12012 szDialogName = "dlg2_InstallationType"; #define DESTINATION_DLG_ID 12013 szDialogName = "dlg3_Destination";
... View more
Jun 30, 2009
05:18 PM
I'm just needing an understand of the DIALOG_ID when creating custom dialogs. Do I need to create custom dialog id's for each custom dialog I have or do these ID's reference a type of dialog it's based on? I have 3 custome dialogs on the first 2 are fine, but the third fails as soon as I call: nCmdValue = WaitOnDialog (szDialogName); nCmdValue returns -1; //_FAILED ---- CODE STARTS ---- #define DESTINATION_DLG_ID 12013 #define DESTINATION_TITLE 50 #define DESTINATION_TITLE_TEXT "Destination Location and Instance Name" #define DESTINATION_DESCRIPTION 51 #define DESTINATION_DESCRIPTION_TEXT "Select Install and then select whether you are installing a New Installation or upgrading an existing instance." #define DESTINATION_DESCRIPTION_FOLDER 1303 #define DESTINATION_DESCRIPTION_DERNAME 1302 #define DESTINATION_DESCRIPTION_FULLPATH 1304 //declare methods prototype NUMBER dlg3_DestinationFolder( STRING ); //methods function NUMBER dlg3_DestinationFolder( szDialogCaption ) string szDialogName, szFullPath, svTmp; BOOL bDone; number nCmdValue, nResult; string szMsg; HWND hTimesNewRoman14Bold; number hwndDlg; begin // Name of Dialog szDialogName = "dlg3_Destination"; hTimesNewRoman14Bold = GetFont("Arial", 14, STYLE_BOLD); nResult = EzDefineDialog (szDialogName, ISUSER, szDialogName, DESTINATION_DLG_ID); // Initialize the indicator used to control the loop. bDone = FALSE; repeat nCmdValue = WaitOnDialog (szDialogName); // Respond to the event. switch (nCmdValue) case _DLG_CLOSE: // The user clicked the window's Close button. Do (EXIT); case DLG_INIT: hwndDlg = CmdGetHwndDlg (szDialogName); //change font CtrlSetFont(szDialogName, hTimesNewRoman14Bold, DESTINATION_TITLE); //set Dialog Caption SetWindowText (hwndDlg, szDialogCaption); // Set static text description displayed above check boxes. CtrlSetText (szDialogName, DESTINATION_TITLE, DESTINATION_TITLE_TEXT); // Set static text description displayed above check boxes. CtrlSetText (szDialogName, DESTINATION_DESCRIPTION, DESTINATION_DESCRIPTION_TEXT); case _BUTTON_NEXT: bDone = TRUE; case _BUTTON_CANCEL: Do (EXIT); case _BUTTON_BACK: bDone = TRUE; case _FAILED: //Failed to create MessageBox("Error creating Destination dialog.", SEVERE); abort; default: //NumToStr(svCmdValue, nCmdValue); SprintfBox(SEVERE, szDialogCaption, "'%d' is not a valid case.", nCmdValue); abort; endswitch; until bDone; //destroy dialog EndDialog ( szDialogName ); return nCmdValue; end;
... View more
Labels
- Labels:
-
InstallShield 2010
Jun 22, 2009
10:44 AM
Based on: http://helpnet.acresso.com/robo/projects/installshield11langref/SERVICE_PARAMS.htm SERVICE_IS_PARAMS only works with OpenSCManager, CreateService, or ChangeServiceConfig calls. ServiceStartService should stop the service and restart it. Using ServiceStopService then ServiceStartService, just allows you to verify it stopped. You were wanting to see if stop from the orginal posting, correct? I'm going to need a recap of where your are. I'm starting to think back and look at the postings up to this point and I'm not sure where the problem is anymore. If your saying that the Service isn't stopping at all when ServiceStopService is being called, then there is a problem with your install. I would try reinstalling InstallShield. Originally you said that if you have a messagebox between ServiceStopService and ServiceStartService everything works, but your also saying that you don't see it stop without the MessageBox. Does that mean it's not stopping or you just dont see it stopping? So I'm unclear where the problem is.
... View more
Jun 19, 2009
09:34 AM
You could try: nHwnd = FindWindow ("NotePad", ""); if (nHwnd != NULL) then SendMessage (nHwnd, WM_SYSCOMMAND, SC_CLOSE, 0); endif;
... View more
Jun 18, 2009
05:57 PM
I'm trying to figure out how to change the default images on the dialogs. I through it was the Billboards, but soon figured out that is the background window, which I don't even show during install. There is a side image on the Welcome screen and the rest have the wide Top image. In WISE there was a bmp file I just go modify so that all my projects have our logo, etc.. I'm guessing it has to do with the "@10550,10551;1;0;;0,128,128", but not sure..
... View more
Labels
- Labels:
-
InstallShield 2009
Jun 18, 2009
04:20 PM
I did a test with 2009 and 2010. I didn't use any Delay or Sleep and it worked fine. I'm unsure what the problem could be. The API is synchronous so you shouldn't have to use any Sleeps or Delays in between them.
... View more
Latest posts by gavin_landon
Subject | Views | Posted |
---|---|---|
5358 | Jul 06, 2009 05:48 PM | |
5358 | Jul 06, 2009 05:46 PM | |
5358 | Jul 06, 2009 04:31 PM | |
5843 | Jul 06, 2009 04:03 PM | |
5843 | Jul 02, 2009 03:04 PM | |
5844 | Jul 01, 2009 03:26 PM | |
5844 | Jul 01, 2009 03:11 PM | |
5844 | Jul 01, 2009 10:22 AM | |
5844 | Jul 01, 2009 09:21 AM | |
5844 | Jun 30, 2009 05:23 PM |
Activity Feed
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 05:48 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 05:46 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 04:31 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 04:03 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 02, 2009 03:04 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 03:26 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 03:11 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 10:22 AM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 09:21 AM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jun 30, 2009 05:23 PM
- Posted Custom Dialogs (DialogID) on InstallShield Forum. Jun 30, 2009 05:18 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 22, 2009 10:44 AM
- Posted Re: Executing a Batch file on InstallShield Forum. Jun 19, 2009 09:34 AM
- Posted Change default images on dialogs on InstallShield Forum. Jun 18, 2009 05:57 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 04:20 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 11:55 AM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 11:35 AM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 17, 2009 05:40 PM
- Posted Re: How to install MS SQL 2005 in this case? on InstallShield Forum. Jun 17, 2009 05:28 PM
- Posted Re: How to install MS SQL 2005 in this case? on InstallShield Forum. Jun 17, 2009 05:25 PM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|