Hi All I have a script that installs 3 components and runs a check disk. This script uses the getfoldername api but I want to point it to the exact location (desktop central requires it). I have attached the script and would like to know what lines I would change in this to the network path of the location of the file. I didn't write this, thanks:

Attachment

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
This script uses the getfoldername apiReally? Where? It sets up a container for the FileSystemObject object but doesn't use it, nor does it contain the word 'folder'.

And when you say "I want it to point to the exact location", what exactly is "it"?
Answered 06/10/2010 by: VBScab
Red Belt

Please log in to comment
0
Sorry about that - I was trying to make some changes myself and attached the wrong script. Here is the original:

Attachment

Answered 06/10/2010 by: BerkApp
Senior Yellow Belt

Please log in to comment
0
If I'm parsing what you're asking right, you want to hardcode the files locations to a ____ network path instead of the script path. To do that, replace these lines:
Dim SGNClientPreinstallMSILocationFile
SGNClientPreinstallMSILocationFile = chr(34) & fso.GetParentFolderName(WScript.ScriptFullName) & "\SGxClientPreinstall.msi" & Chr(34)

Dim SDEClientMSILocationFile
SDEClientMSILocationFile = chr(34) & fso.GetParentFolderName(WScript.ScriptFullName) & "\sdeclient.msi" & Chr(34)

Dim SDEClientConfigMSILocationFile
SDEClientConfigMSILocationFile = chr(34) & fso.GetParentFolderName(WScript.ScriptFullName) & "\clientpkg.msi" & Chr(34)

Dim InstallationLogFileLocation
InstallationLogFileLocation = fso.GetParentFolderName(WScript.ScriptFullName)


With something that would look like this:
Dim SGNClientPreinstallMSILocationFile
SGNClientPreinstallMSILocationFile = chr(34) & "\\SERVER\PATH\SGxClientPreinstall.msi" & Chr(34)

Dim SDEClientMSILocationFile
SDEClientMSILocationFile = chr(34) & "\\SERVER\PATH\sdeclient.msi" & Chr(34)

Dim SDEClientConfigMSILocationFile
SDEClientConfigMSILocationFile = chr(34) & "\\SERVER\PATH\clientpkg.msi" & Chr(34)

Dim InstallationLogFileLocation
InstallationLogFileLocation = "\\SERVER\PATH\"


Also, uh, the "InstallationLogFileLocation" is defined, but it never gets used. Might consider removing those lines altogether since it's just clutter at this point.
Answered 06/10/2010 by: Jsaylor
Second Degree Blue Belt

Please log in to comment
0
Thanks very much I will give this a shot.
Answered 06/10/2010 by: BerkApp
Senior Yellow Belt

Please log in to comment
0
This worked great, I appreciate the help.
Answered 06/10/2010 by: BerkApp
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity