AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.02.2018, 00:27   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
yetanotherdynamicsaxblog: Installing a Software Deployable Package (SDP) using PowerShell
Источник: http://yetanotherdynamicsaxblog.blog...e-package.html
==============

Now the PowerShell involved here is miniscule, so don't expect much. But I'm going to post this either way.

You will most likely install Software Deployable Packages using LCS, as outlined on the official docs, so why would you need a PowerShell script for this? It so happens that you need to install the package manually if you for example need to upgrade from 7.2 to 7.3 of Operations.

You download the package from LCS. After unblocking the zip-file, and extract it somewhere. I typically extract it on the Temporary Drive, the D-drive. Then you simply need to run this small script to initiate the installation locally.

#Requires -RunAsAdministrator

function InstallSDP()
{
$BinaryPackageLocation = 'D:\Update'
$Installer = $('{0}\AXUpdateInstaller.exe' -f $BinaryPackageLocation)

if (Test-Path -Path $Installer)
{
Set-Location $BinaryPackageLocation
& $Installer 'quickinstallall' 2>&1 | Out-String
}
else
{
Write-Output $("No update found in {0}" -f $BinaryPackageLocation)
}
}

InstallSDP

Now, this will not work unless you have local admin rights. So the yes, that means if you plan to run the 7.2 to 7.3 upgrade, you need to run it on a machine where you have local admin rights. This is pointed out in question 14 on Robert Badawys FAQ on the matter.

Notice I am using the "quickinstallall" command here, and this is only applicable for OneBox Developer VMs.

So what about "devinstall"-command? You cannot use the devinstall for the upgrade package, but you can use it in other scenarios where you install customization packages and hotfixes. It was introduced in Platform Update 12, and is intended for use without the need for local admin privileges.




Источник: http://yetanotherdynamicsaxblog.blog...e-package.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Теги
d365o, hotfix, powershell

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
yetanotherdynamicsaxblog: PowerShell script to toggle Maintenance mode Blog bot DAX Blogs 0 03.02.2018 01:15
yetanotherdynamicsaxblog: PowerShell script for synchronizing the database Blog bot DAX Blogs 0 28.01.2018 22:12
yetanotherdynamicsaxblog: List hotfixes using PowerShell in D365FO (AX7) Blog bot DAX Blogs 0 13.01.2018 20:21
yetanotherdynamicsaxblog: Error when installing Reporting Extensions for AX2012 R3 on SQL Server 2016 Blog bot DAX Blogs 0 14.09.2017 13:11
goshoom: Installing deployable packages with Powershell Blog bot DAX Blogs 0 17.11.2016 12:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:20.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.