Dec 24, 2007
11:11 AM
Thanks! The link you have seems dead, but I fumbled my way to: http://www.installsite.org/pages/en/isnews/200108/index.htm I assume that's the info. Exactly what I needed.
... View more
Dec 20, 2007
04:22 PM
Hello, I'm having to work with an MSI project, which I am somewhat familiar with. I have a CA that runs some VBScript which will delete a shortcut. I seem to get it working on second installs, because the Install Exec Sequence is set to After InstallFinalize. [edit: I just realized I was incorrect. I had it set to after CreateShortcut, but realized the merge module was placing them. The help states that InstallFinalize is the last transacted step, and I am testing it now.. Sorry for any confusion] I assume this is occurring before the merge module that installs the shortcut happens, since it works on repair. So I guess to keep it simple, what's the equivalent of OnEnd in InstallScript in CAs? Is there a flow chart of events for the Exec Sequence posted anywhere? I'd love to know when these sequences occur in relation to begin, end, and in relation to eachother. Thanks!
... View more
Labels
- Labels:
-
InstallShield 2008
Dec 04, 2007
05:31 PM
I have a problem I'm hoping someone can help with. Basically, I have an InstallScript project that configures a SQL Server setup INI file. At the end of that, it attempts to launch Setup.exe on the same CD that launches the SQL Server 2005 setup. What happens, is when I use LaunchApplication (SRCDIR ^ "\\Setup.exe...etc); it launches the same installation that just ran, the one that configures the ini and calls setup for SQL Server. It doesn't even have the same name. The original is ConfigureSQL.exe and SQL Servers setup file is setup.exe. Is there a better way of referring to the root of the CD drive where SQL's setup exists? I had tried GetValidDrivesList but had no luck with converting whatever was returned into a string to define the drive letter, so I could do LaunchApplication (szDrive + "\\setup.exe...etc). Thanks.
... View more
Labels
- Labels:
-
InstallShield 2008
Nov 19, 2007
02:05 PM
I've been using a FindAndReplace function from InstallSite.org: ///////////////////////////////////////////////////////////////////////////////////// // // File Name: FindAndReplace // // Description: Finding a line containing a specified String, and replacing // with a string you specify. A complete find-and-replace function // // Comments: Function takes three String arguments // // Usage: call function passing the three String parameters required // i.e FindAndReplace("C:\winnt\vb.ini","Search","Replace") // Find and Replace function not case-sensitive // // Script Author: Dinesh // Date last modified: 04/07/02 //////////////////////////////////////////////////////////////////////////////// prototype FindAndReplace(STRING, STRING, STRING); //Global Variables STRING SrcDirFileName, SrchString, RplcString; STRING firstPart; NUMBER SrchLen, nvLineNumber; function FindAndReplace(SrcDirFileName, SrchString, RplcString) STRING svReturnLine,szString, secPart; NUMBER nReturn, subPos, nStringLength; begin Disable(STATUSEX); //stop displaying the progress bar ShowObjWizardPages(NEXT); //WARNING this may throw a user interface SrchLen = StrLength(SrchString); //length of search string nvLineNumber = 0; //pre-set file line number to 0 Din: while (FileGrep (SrcDirFileName, SrchString, svReturnLine, nvLineNumber, RESTART)=0) //subPos is the number where the first char of search string was found subPos = StrFind(svReturnLine, SrchString); //firstPart is the string upto search string but not including searchString StrSub (firstPart, svReturnLine, 0, subPos); //get length of string to pass to StrSub nStringLength = StrLength (svReturnLine); //secPart is the string after search string StrSub (secPart, svReturnLine, subPos+SrchLen, nStringLength); //new string is firstPart followed by replace string followed by secPart TextSub.Value( "SUBBED" ) = RplcString; szString = firstPart+" "+secPart; TextSub.Substitute( szString ); //write line replacing original FileInsertLine (SrcDirFileName, szString, nvLineNumber, REPLACE); //the code below examines the line written back for any other occurences //systematically searching and re-writting back to file //search first line again for search string if (FileGrep (SrcDirFileName, SrchString, svReturnLine, nvLineNumber, RESTART)=0) then goto Din; //another occurence found else //increment line number and start all over again nvLineNumber = nvLineNumber + 1; endif; endwhile; //while loop exited when END_OF_FILE reached end;
... View more
Nov 13, 2007
08:27 AM
Would simply refreshing the webpage do the trick? Like replicating an F5 keypress?
... View more
Nov 09, 2007
01:04 PM
Try this vbscript: strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsWebServiceSetting") For Each objItem in colItems strDocs = objItem.DefaultDoc objItem.DefaultDoc = strDocs & ",index.htm" objItem.DefaultDocFooter = "FILE:c:\config\footer.htm" objItem.EnableDefaultDoc = True objItem.EnableDocFooter = True objItem.Put_ Next
... View more
Nov 09, 2007
01:00 PM
You can look at this list of vbscripts: http://www.cruto.com/resources/vbscript/vbscript%2Dexamples/iis/iis6/apps/ Modify Application Pools Recycling Properties I don't see anything for shutting them down after N minutes, but maybe I didn't look hard enough.
... View more
Nov 07, 2007
01:21 PM
Try this: Click the Build menu and select Settings. Down in the Link section (Libraries), add a comma after the last entry followed by: \Script\ISRT\Lib\NetApiRT.obl I'm assuming the file should be there by default. Maybe you can check to be sure. (C:\Program Files\Macrovision\IS2008\Script\isrt\lib\NetApiRT.obl)
... View more
Nov 02, 2007
01:33 PM
I just tested this on a machine that used the pipe "|" character: hFont = (GetFont ("Tahoma", 8, STYLE_NORMAL)); CtrlSetFont (szDialogName, hFont, RES_PBUT_PASS); It worked. The dots were smaller than the common window dots you may see though. I'm sure there's a font that could get it exact for what you need though. I have two custom dialogs that use password fields though, in an InstallScript project; so the resource ID's were available to me to manipulate.
... View more
Nov 02, 2007
01:24 PM
Try it without changing the install dir by just taking the default and see if it fails still.
... View more
Nov 02, 2007
01:18 PM
I had the same issue and never could get it working. Do any of the dialogs launch another window per chance? Like an browse window, etc.
... View more
Nov 01, 2007
12:51 PM
From what I read, people who used Depends.exe or Dependacy Walker to see why the file you refer to was having problems found that it was missing MSVCR70.dll I think. That merge module in some cases fixed the issue. Worth a shot like you said.
... View more
Nov 01, 2007
09:46 AM
Have you tried including MSVCR70.msm in the project? Supposedly Visual FoxPro comes with it.
... View more
Nov 01, 2007
09:33 AM
For what it's worth, I've found that it varies from computer to computer. Some show the dots, others the lines. I'm assuming that the display properties dictate it, not the installer.
... View more
Oct 30, 2007
08:49 AM
A VBScript should do what you need. http://msdn2.microsoft.com/en-us/library/ms951564.aspx Sample script from the page: <% Dim WebServerRootObj Dim VDirObj Dim WritePerm ' Open the object for the first virtual Web server root Set WebServerRootObj = GetObject("IIS://MyComputer/W3SVC/1/Root") ' Deny write access for all directories and files ' for the server (except those already specifically set) ' Using the Put method WebServerRootObj.Put "AccessWrite", False ' Save the changed value to the metabase WebServerRootObj.SetInfo ' Get a directory subordinate to the Web server root. Note that this line of code assumes ' Vdir1 has already been created. Set VDirObj = GetObject("IIS://MyComputer/W3SVC/1/Root/Vdir1/Dir1a") ' Overwrite the inherited value for write access ' using the dot method equivalent to Put VDirObj.AccessWrite = True ' Save the changed value to the metabase VDirObj.SetInfo %>
... View more
Latest posts by m_rudolph
Subject | Views | Posted |
---|---|---|
514 | Dec 24, 2007 11:11 AM | |
3560 | Dec 20, 2007 04:22 PM | |
2451 | Dec 04, 2007 05:31 PM | |
1071 | Nov 19, 2007 02:05 PM | |
921 | Nov 13, 2007 08:27 AM | |
786 | Nov 09, 2007 01:04 PM | |
886 | Nov 09, 2007 01:00 PM | |
614 | Nov 07, 2007 01:21 PM | |
1585 | Nov 02, 2007 01:33 PM | |
1917 | Nov 02, 2007 01:24 PM |
Activity Feed
- Posted Re: MSI Equivalants to InstallScript on InstallShield Forum. Dec 24, 2007 11:11 AM
- Posted MSI Equivalants to InstallScript on InstallShield Forum. Dec 20, 2007 04:22 PM
- Posted SRCDIR with Nested Installs on InstallShield Forum. Dec 04, 2007 05:31 PM
- Posted Re: Problems with text replacement on InstallShield Forum. Nov 19, 2007 02:05 PM
- Posted Re: Updating PATH For Running Application on InstallShield Forum. Nov 13, 2007 08:27 AM
- Posted Re: setting default doc in IIS through installscript on InstallShield Forum. Nov 09, 2007 01:04 PM
- Posted Re: InstallScript Application pools configuration on InstallShield Forum. Nov 09, 2007 01:00 PM
- Posted Re: SdLogonUserBrowse is missing dll on InstallShield Forum. Nov 07, 2007 01:21 PM
- Posted Re: Passwords & Edit Boxes on InstallShield Forum. Nov 02, 2007 01:33 PM
- Posted Re: ResultCode -3 trying to run in silent mode on InstallShield Forum. Nov 02, 2007 01:24 PM
- Posted Re: ResultCode -3 trying to run in silent mode on InstallShield Forum. Nov 02, 2007 01:18 PM
- Posted Re: Error on building an installshield on InstallShield Forum. Nov 01, 2007 12:51 PM
- Posted Re: Error on building an installshield on InstallShield Forum. Nov 01, 2007 09:46 AM
- Posted Re: Passwords & Edit Boxes on InstallShield Forum. Nov 01, 2007 09:33 AM
- Posted Re: How to set IIS Permissions on folders on InstallShield Forum. Oct 30, 2007 08:49 AM
- Posted Re: Changing Error Messages (Basic MSI) on InstallShield Forum. Oct 19, 2007 02:22 PM
- Posted Re: Changing Error Messages (Basic MSI) on InstallShield Forum. Oct 19, 2007 08:47 AM
- Posted Changing Error Messages (Basic MSI) on InstallShield Forum. Oct 18, 2007 03:25 PM
- Posted Re: Create SQL Database on InstallShield Forum. Oct 11, 2007 03:48 PM
- Posted Re: Create SQL Database on InstallShield Forum. Oct 11, 2007 03:26 PM