Jump to content


  • 0
Kingskawn

Install Office 2010 based on a variable

Question

In my task sequence I have a line where Office 2010 will install if Office 2010 doesn't exists in the registry.

But for some reason it isn't working right now.

 

So in my TS I have;

 

Select the registry setting to evaluate

Root key: HKEY_LOCAL_MACHINE

 

Key: SOFTWARE\Microsoft\Office\14.0

 

Condition: not exists

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

This is a snippet from my smsts.log

 

Successfully added 3 condition parameters	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Adding begin group instruction at 52	TSManager	13/01/2011 13:53:20	508 (0x01FC)
There are 2 first level steps or groups	TSManager	13/01/2011 13:53:20	508 (0x01FC)

Parsing step node: Install Office 2010 Std	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Description: 	TSManager	13/01/2011 13:53:20	508 (0x01FC)
ContinueOnError: true	TSManager	13/01/2011 13:53:20	508 (0x01FC)
SuccessCodeList: 0	TSManager	13/01/2011 13:53:20	508 (0x01FC)
A condition is associated with the step found	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Found and operator.	TSManager	13/01/2011 13:53:20	508 (0x01FC)
There are 1 operands	TSManager	13/01/2011 13:53:20	508 (0x01FC)
**Processing operator node	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Found or operator.	TSManager	13/01/2011 13:53:20	508 (0x01FC)
There are 1 operands	TSManager	13/01/2011 13:53:20	508 (0x01FC)
**Processing expression node	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Found SMS_TaskSequence_RegistryConditionExpression expression.	TSManager	13/01/2011 13:53:20	508 (0x01FC)
**In ProcessBuiltInCondition node: expression	TSManager	13/01/2011 13:53:20	508 (0x01FC)
There are 5 operands in the built in action	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Operand Data=1	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Operand KeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Operand Operator=less	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Operand Type=REG_DWORD	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Operand Value=InstallCount	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Successfully added 5 condition parameters	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Disable: 	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Start in dir: 	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Run in attribute: FullOS	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Timeout: 	TSManager	13/01/2011 13:53:20	508 (0x01FC)
DefaultVarlist found	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Variable name: _SMSSWDProgramName	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Action command line: smsswd.exe /pkg:ALS001FC /install /basevar: /continueOnError:	TSManager	13/01/2011 13:53:20	508 (0x01FC)
Adding instruction at 53	TSManager	13/01/2011 13:53:20	508 (0x01FC)

Parsing step node: Set folder attributes	TSManager	13/01/2011 13:53:20	508 (0x01FC)

 

Successfully save execution state and environment to local hard disk	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Start executing an instruciton. Instruction name: Install Office 2010 Std. Instruction pointer: 53	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSCurrentActionName=Install Office 2010 Std	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSNextInstructionPointer=53	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a local default variable _SMSSWDProgramName	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSLogPath=C:\Windows\system32\CCM\Logs\SMSTSLog	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Evaluating an AND expression	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Evaluating an OR expression	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Evaluating a registry condition expression	TSManager	13/01/2011 13:58:30	508 (0x01FC)
KeyPath = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Value = InstallCount	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Type = REG_DWORD	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Data = 1	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Operator = less	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Expand a string: less	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Expand a string: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Expand a string: InstallCount	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Expand a string: REG_DWORD	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Expand a string: 1	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Comparing registry value HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot\InstallCount with DWORD data 1	TSManager	13/01/2011 13:58:30	508 (0x01FC)
The registry condition expression is evaluated to be FALSE	TSManager	13/01/2011 13:58:30	508 (0x01FC)
The OR expression is evaluated to be FALSE	TSManager	13/01/2011 13:58:30	508 (0x01FC)
The AND expression is evaluated to be FALSE	TSManager	13/01/2011 13:58:30	508 (0x01FC)
The action (Install Office 2010 Std) has been skipped because the condition is evaluated to be false	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Sending status message . . .	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Send a task execution status message SMS_TSExecution_SkipActionConditionFalseInfo	TSManager	13/01/2011 13:58:30	508 (0x01FC)
MP server srvsccm.ALS.fr and port 80. SSL=false. CRL=false.	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Site code: ALS	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Client machine name: machine42	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Client Identity: GUID:E6B9D965-6532-4DC2-90E8-0ACF2571E497	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Advertisement ID: ALS206FA	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Package ID: ALS001CF	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Sending StatusMessage	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Formatted header:	TSManager	13/01/2011 13:58:30	508 (0x01FC)
<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>ce10a22b-7320-4ea1-9a1c-6343ed967c6d</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2011-01-13T12:58:30Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2192"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
TSManager	13/01/2011 13:58:30	508 (0x01FC)
CLibSMSMessageWinHttpTransport::Send: URL: srvsccm.ALS.fr:80  CCM_POST /ccm_system/request	TSManager	13/01/2011 13:58:30	508 (0x01FC)
The request has succeeded. 200 OK	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Clear local default environment	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Execution of the instruction (Install Office 2010 Std) has been skipped	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Start executing an instruciton. Instruction name: Set folder attributes. Instruction pointer: 54	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSCurrentActionName=Set folder attributes	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSNextInstructionPointer=54	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a local default variable SMSTSDisableWow64Redirection	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a local default variable _SMSTSRunCommandLineAsUser	TSManager	13/01/2011 13:58:30	508 (0x01FC)
Set a global environment variable _SMSTSLogPath=C:\Windows\system32\CCM\Logs\SMSTSLog	TSManager	13/01/2011 13:58:30	508 (0x01FC)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.