Hmmm Mike.. there you are again!!!
appreciate the help!!!!
Ok so here is what im doing...
Using the NS6 to deploy a .exe file I compiled.. I think part of what you said up there is key..
I am removing the NS6 agent... but not copying the .exe to a different location.. so since this is running from the cache.. could that be keeping the old path?
we still have 2400 machines to migrate so would like to get this going... now personally it isnt a big deal...
I would rather have the old directory structure.. altiris agent\software delivery instead of altiris agent\agents\blah blah.. i like the shorter one better...
so here I will give my code so it may help anyone else wondering how this could work for them if they need it... side comment.. it is working so I didnt fix it.. but there are probably better ways to do it..
Rem Look for aexagentutil.exe
Search for file c:\program files (x86)\altiris\altiris agent\aexagentutil.exe place in Variable AEXAGENTFOUND64
Search for file c:\program files\altiris\altiris agent\aexagentutil.exe place in Variable AEXAGENTFOUND32
If AEXAGENTFOUND64 Equals (Ignore Case) "C:\Program Files (x86)\Altiris\Altiris Agent\aexagentutil.exe" then
Rem Stop Altiris Agent
Execute Net stop aexnsclient (Wait)
Rem Agent UninstallAgents
Execute C:\Program files (x86)\Altiris\Altiris Agent\aexagentutil.exe /UninstallAgents /Clean (Wait)
Rem Recovery Solution
Execute MsiExec.exe /X{2610B7B9-7079-47AA-B898-90C62280946B} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Software Delivery
Execute MsiExec.exe /X{50F23236-1610-4E2E-A543-E158925E3BFA} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Execute MsiExec.exe /X{A0A1EB01-A6FD-423A-8480-364055A7C961} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem HP Client Manager
/* Execute HPCMSSetup.exe uninstall
Rem Dell Client Manager
Execute msiexec -x {00293E7E-A756-42B3-A555-202D352A3021} /q REBOOT="ReallySuppress" REBOOTPROMPT="S"
Rem Application Metering
Execute MsiExec.exe /X{FC350782-8982-4BBE-B9BA-B474CCDC935A} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Power Scheme
Execute MsiExec.exe /X{A847BFFB-A77E-4D71-A22F-6268EAF1B1AB} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem SVS
Execute msiexec.exe /x {7D8DBB7C-1C55-4950-A107-043C164F379A} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Aclient
Rem Install Altiris ITMS 7.1 Client Agent
Install File C:\Wise Share Point\Projects\ITMS_Upgrade\Agent\AeXNSC.exe to %TEMP%\AeXNSC.exe
Execute %TEMP%\AeXNSC.exe /s /Install /ns=MyProdServer.com
ElseIf AEXAGENTFOUND32 Equals (Ignore Case) "C:\Program Files\Altiris\Altiris Agent\aexagentutil.exe" then
Rem Stop Altiris Agent
Execute Net stop aexnsclient (Wait)
Rem Agent UninstallAgents
Execute C:\Program files\Altiris\Altiris Agent\aexagentutil.exe /UninstallAgents /Clean (Wait)
Rem Recovery Solution
Execute MsiExec.exe /X{2610B7B9-7079-47AA-B898-90C62280946B} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Software Delivery
Execute MsiExec.exe /X{50F23236-1610-4E2E-A543-E158925E3BFA} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Execute MsiExec.exe /X{A0A1EB01-A6FD-423A-8480-364055A7C961} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem HP Client Manager
/* Execute HPCMSSetup.exe uninstall
Rem Dell Client Manager
Execute msiexec -x {00293E7E-A756-42B3-A555-202D352A3021} /q REBOOT="ReallySuppress" REBOOTPROMPT="S"
Rem Application Metering
Execute MsiExec.exe /X{FC350782-8982-4BBE-B9BA-B474CCDC935A} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Power Scheme
Execute MsiExec.exe /X{A847BFFB-A77E-4D71-A22F-6268EAF1B1AB} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem SVS
Execute msiexec.exe /x {7D8DBB7C-1C55-4950-A107-043C164F379A} /q REBOOT="ReallySuppress" REBOOTPROMPT="S" (Wait)
Rem Aclient
Rem Install Altiris ITMS 7.1 Client Agent
Install File C:\Wise Share Point\Projects\ITMS_Upgrade\Agent\AeXNSC.exe to %TEMP%\AeXNSC.exe
Execute %TEMP%\AeXNSC.exe /s /Install /ns=MyProdServer.com
Else
Install File C:\Wise Share Point\Projects\ITMS_Upgrade\Agent\AeXNSC.exe to %TEMP%\AeXNSC.exe
Execute %TEMP%\AeXNSC.exe /s /Install /ns=MyProdServer.com (Wait)
End