diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitBanner.png b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitBanner.png
new file mode 100644
index 0000000..222bca4
Binary files /dev/null and b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitBanner.png differ
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitConfig.xml b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitConfig.xml
new file mode 100644
index 0000000..e71f7c5
--- /dev/null
+++ b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitConfig.xml
@@ -0,0 +1,1203 @@
+
+
+
+
+
+ 3.8.3
+ 30/09/2020
+
+
+
+
+ True
+
+ $envTemp
+
+ HKLM:\SOFTWARE
+
+ $envWinDir\Logs\Software
+
+ $envTemp
+
+ HKCU:\SOFTWARE
+
+ $envProgramData\Logs\Software
+
+ False
+
+ CMTrace
+
+ False
+
+ 10
+
+ True
+
+
+
+
+
+
+ AppDeployToolkitLogo.ico
+
+ AppDeployToolkitBanner.png
+
+ 70
+
+
+
+
+
+
+ /L*v
+
+ $envWinDir\Logs\Software
+
+ $envProgramData\Logs\Software
+
+ REBOOT=ReallySuppress /QB-!
+
+ REBOOT=ReallySuppress /QN
+
+ REBOOT=ReallySuppress /QN
+
+ 600
+
+
+
+
+
+
+
+
+ True
+
+ 6900
+
+ 1618
+
+ 60012
+
+ 60
+
+ 600
+
+ 120
+
+ True
+
+
+
+
+ 2
+
+
+
+
+
+
+
+ You do not have enough disk space to complete the installation of:
+ {0}
+
+ Space required: {1}MB
+ Space available: {2}MB
+
+ Please free up enough disk space in order to proceed with the installation.
+ Continue
+
+ Only select "Continue" after closing the above listed application(s).
+
+ Close Programs
+
+ Defer
+
+ The following programs must be closed before the installation can proceed.
+
+ Please save your work, close the programs, and then continue.
+ Alternatively, save your work and click "Close Programs".
+
+ NOTE: The program(s) will be automatically closed in:
+
+ The following application is about to be installed:
+
+ You can choose to defer the installation until the deferral expires:
+
+ Once the deferral has expired, you will no longer have the option to defer.
+
+ Remaining Deferrals:
+
+ Deadline:
+
+
+ The {0} will automatically continue in:
+
+
+
+
+ Installation
+
+ Uninstallation
+
+ Repairing
+
+
+
+ started.
+
+ complete.
+
+ complete. A reboot is required.
+
+ failed.
+
+ not complete.
+
+
+ Installation in progress. Please wait...
+
+ Uninstallation in progress. Please wait...
+
+ Repair in progress. Please wait...
+
+ Launching this application has been temporarily blocked so that an installation operation can complete.
+
+ Restart Required
+
+ In order for the installation to complete, you must restart your computer.
+ Please save your work and restart within the allotted time.
+ Your computer will be automatically restarted at the end of the countdown.
+
+ Time remaining:
+ Minimize
+ Restart Now
+
+
+
+
+ Du har ikke plads nok til at færdiggøre installationen af:
+ {0}
+
+ Plads krævet: {1}MB
+ Plads tilgængelig: {2}MB
+
+ Vær venlig at frigøre nok diskplads før du fortsætter installationen.
+ Fortsæt
+ Vælg kun "Fortsæt" efter at du har afsluttet de ovenfor nævnte programmer.
+ Luk Programmer
+ Udsæt
+ Følgende programmer skal lukkes før installationen kan fortsætte.
+
+ Gem dit arbejde, luk programmerne og fortsæt.
+ Alternativt kan du gemme dit arbejde og trykke på "Luk Programmer".
+ BEMÆRK: Programmet/Programmerne vil automatisk blive lukket om:
+ Følgende applikation vil nu blive installeret:
+ Du kan vælge at udsætte installationen indtil udsættelsesperioden udløber:
+ Når udsættelsesperioden udløber kan du ikke længere udsætte installationen.
+ Udsættelser tilbage:
+ Deadline:
+
+ The {0} will automatically continue in:
+
+
+ Installation
+ Afinstallation
+ Reparere
+
+ startet.
+ færdig.
+ færdig. En genstart er nødvendig.
+ fejlet.
+ ikke færdig.
+ Installation i gang. Vent venligst...
+ Afinstallation i gang. Vent venligst...
+ Reparere i gang. Vent venligst...
+ Opstart af denne applikation er midlertidigt blokeret da en installationsproces er under afvikling.
+ Genstart Nødvendig
+ For at færdiggøre installationen skal du genstarte din computer.
+ Du bør venligst gemme dit arbejde og genstarte indenfor det givne tidsrum.
+ Din computer vil automatisk blive genstartet når nedtællingen er færdig.
+ Tid tilbage:
+ Minimere
+ Genstart Nu
+
+
+
+
+ Vous n’avez pas assez d’espace sur le disque pour compléter l’installation de:
+ {0}
+
+ Espace requis: {1}MB
+ Espace disponible: {2}MB
+
+ Merci de vous assurez d’avoir assez d’espace libre pour pouvoir continuer l’installation.
+ Poursuivre
+ Veuillez cliquer sur « Poursuivre » uniquement après avoir fermé la ou les application(s) ci-dessus.
+ Fermer Programmes
+ Reporter l'installation
+ Les programmes suivants doivent être fermés afin que l'installation s'initialise.
+
+ Merci de sauvegarder votre travail, fermer tous les programmes, et continuer.
+ Vous pouvez aussi sauvegarder votre travail puis cliquez sur « Fermer Programmes ».
+ REMARQUE: Les programmes seront automatiquement fermés dans:
+ L'application suivante est sur le point d'être installée:
+ Vous pouvez choisir de reporter l'installation:
+ Quand le temps aura expiré, vous n'aurez plus la possibilité de reporter.
+ Nombre(s) de report restant(s):
+ Temps limite:
+
+ The {0} will automatically continue in:
+
+
+ Installation
+ Désinstallation
+ Réparation
+ en cours.
+ réussie.
+ réussie. Un redémarrage est requis.
+ en échec.
+ incomplète.
+ Installation en cours, merci de patienter...
+ Désinstallation en cours, merci de patienter...
+ Réparation en cours, merci de patienter...
+ Le lancement de cette application a été temporairement bloqué afin qu'une autre installation puisse se terminer.
+ Redémarrage Requis
+ Pour que l'installation soit compléte, vous devez redémarrer votre ordinateur.
+ Merci de sauvegarder votre travail et de redémarrer avant que le temps spécifié ne soit écoulé.
+ Votre ordinateur sera automatiquement redémarré à la fin du décompte.
+ Temps restant:
+ Minimiser
+ Redémarrer Maintenant
+
+
+
+
+ Sie haben nicht genug freien Speicherplatz um die Installation abzuschließen:
+ {0}
+
+ Platzbedarf: {1}MB
+ Freier Speicherplatz: {2}MB
+
+ Bitte geben Sie ausreichend Speicherplatz frei, um mit der Installation fortzufahren.
+ Weiter
+ Klicken Sie erst auf „Weiter“, nachdem Sie die obigen Anwendung(en) geschlossen haben.
+ Programme Schließen
+ Aufschieben
+ Die folgenden Programme müssen geschlossen werden, bevor die Installation fortgesetzt werden kann.
+
+ Bitte speichern Sie Ihre Arbeit, schließen Sie die Programme und fahren Sie dann fort.
+ Alternativ können Sie Ihre Arbeit speichern und dann auf „Programme Schließen“ klicken.
+ HINWEIS: Diese Programme werden automatisch geschlossen:
+ Die folgende Anwendung soll installiert werden:
+ Sie können die Installation verzögern, bis die Rückstellung abläuft:
+ Sobald die Rückstellung abgelaufen ist, werden Sie keine Möglichkeit mehr haben die Installation zu verschieben.
+ Verbleibende Rückstellungen:
+ Termin:
+
+ Die {0} wird automatisch fortgesetzt in:
+
+
+ Installation
+ Deinstallation
+ Reparatur
+ gestartet.
+ abgeschlossen.
+ abgeschlossen. Ein Neustart ist erforderlich.
+ ist fehlgeschlagen.
+ nicht abgeschlossen werden.
+ Installation wird durchgeführt. Bitte warten...
+ Deinstallation wird durchgeführt. Bitte warten...
+ Reparatur wird durchgeführt. Bitte warten...
+ Das Starten dieser Anwendung(en) wurde vorübergehend blockiert, damit der Installationsvorgang erfolgreich durchgeführt werden kann.
+ Neustart Erforderlich
+ Zum Abschluss der Installation müssen Sie Ihren Computer neu starten.
+ Bitte speichern Sie Ihre Arbeit und starten Sie den Computer innerhalb der vorgegebenen Zeit neu.
+ Am Ende des Countdowns wird Ihr Computer automatisch neu gestartet.
+ Verbleibende Zeit:
+ Minimieren
+ Jetzt Neustarten
+
+
+
+
+ Non si dispone di spazio su disco sufficiente per completare l' installazione di:
+ {0}
+
+ Spazio necessario: {1}MB
+ Spazio disponibile: {2}MB
+
+ Si prega di spazio libero su disco sufficiente per procedere con l'installazione.
+ Continua
+ Seleziona "Continua" solo dopo la chiusura della(e) applicazione(i) elencate sopra.
+ Chiudi Programmi
+ Rimanda
+ I seguenti programmi devono essere chiusi prima che l'installazione possa procedere.
+
+ Salvare il lavoro , chiudere i programmi, e poi continuare.
+ In alternativa, salvare il lavoro e fare clic su "Chiudi Programmi".
+ NOTA: il programma(s) sarà chiuso automaticamente in:
+ La seguente applicazione sta per essere installata:
+ Si può decidere di posticipare l'installazione fino alla prossima richiesta automatica:
+ Una volta che le richieste rimanenti saranno scadute, non sarà più possibile posticipare l'installazione.
+ Posticipi rimanenti:
+ Scadenza:
+
+ The {0} will automatically continue in:
+
+
+ Installazione
+ Disinstallazione
+ Riparazione
+ Iniziata.
+ Completata.
+ Completata. È necessario riavviare il computer.
+ Fallita.
+ Non completata.
+ Installazione in corso. Attendere prego...
+ Disinstallazione in corso. Attendere prego...
+ Riparazione in corso. Attendere prego...
+ L'esecuzione di questa applicazione è stata temporaneamente bloccata in modo che l'operazione di installazione possa essere completata.
+ Riavvio Richiesto
+ Per completare l'installazione, è necessario riavviare il computer.
+ Salvare il lavoro e riavviare entro il tempo assegnato.
+ Il computer verrà riavviato automaticamente al termine del conto alla rovescia.
+ Tempo rimanente:
+ Minimizzare
+ Riavvia Ora
+
+
+
+
+ ディスクの空き容量が不足しているため、インストールを完了できません:
+ {0}
+
+ 必要な容量: {1}MB
+ 現在の空き容量: {2}MB
+
+ インストールを実行するために、容量を確保してください
+ 続行
+ 上記に記載されているアプリケーションを終了してから「続ける」を選択してください。
+ プログラムを強制終了
+ 後で
+ インストールを実行するために、下記のプログラムを閉じる必要があります。
+
+ 実行中のアプリケーションを保存し、閉じてから続行してください。
+ または、実行中のアプリケーションを保存し、プログラムを強制終了ボタンをクリックしてくだい
+ 注意: これらのプログラムは自動的に閉じられます:
+ このアプリケーションはこれからインストールされます。
+ 再試行可能回数が0になるまでは、都合の良い時にインストール可能です。
+ 再試行可能回数が0になった場合、システムで強制インストールをします。
+ 再試行可能回数:
+ デッドライン:
+
+ The {0} will automatically continue in:
+
+
+ インストール
+ アンインストール
+ 修復
+ 開始
+ 完了です
+ 完了。再起動が必要です。
+ 失敗。
+ 未完了。
+ インストール中です。 少々お待ちください。
+ アンインストール中です。 少々お待ちください。
+ 修復中です。 少々お待ちください。
+ アプリケーションインストールが完了するまで、このアプリケーションの起動を一時的にブロックしています。
+ 再起動が必要です
+ インストールを完了するために、再起動が必要です。
+ 実行中のアプリケーションを保存し、再起動してください。
+ カウントダウン後にコンピュータが再起動します。
+ 残時間:
+ 最小 化
+ 今すぐ再起動
+
+
+
+
+ Du har ikke nok diskplass for å fullføre installasjonen av:
+ {0}
+
+ Ledig plass påkrevd: {1}MB
+ Ledig plass tilgjengelig: {2}MB
+
+ Frigjør diskplass for å fortsette installasjonen.
+ Fortsett
+ Velg kun "Fortsett" etter du har lukket applikasjonen(e) oppført over.
+ Lukk Programmer
+ Utsett
+ Følgende programmer må lukkes før installasjonen kan fortsette.
+
+ Lagre arbeidet, lukk programmene og velg "Fortsett"
+ Eller velg "Lukk Programmer" uten å lagre.
+ OBS: Programmet vil automatisk lukkes om:
+ Følgende program vil bli installert:
+ Du kan velge å utsette installasjonen et begrenset antall ganger inntil fristen utløper:
+ Når fristen har utløpt kan du ikke lenger utsette installasjonen.
+ Gjenstående utsettelser:
+ Frist:
+
+ The {0} will automatically continue in:
+
+
+ Installasjon
+ Avinstallasjon
+ Reparasjon
+ startet.
+ fullført.
+ ferdig. En omstart er nødvendig.
+ mislyktes.
+ ikke fullført.
+ Programvareinstallasjon pågår. Vennligst vent..
+ ProgramvareAvinstallasjon pågår. Vennligst vent..
+ ProgramvareReparasjon pågår. Vennligst vent..
+ Start av dette programmet er midlertidig blokkert til programvareinstallasjon er ferdig.
+ Omstart Kreves
+ En omstart av pcen er nødvendig for å fullføre installasjonen.
+ Lagre arbeidet ditt og gjør en omstart av pc innen fristen.
+ Pcen vil automatisk starte på nytt, når nedtellingen er slutt.
+ Tid som gjenstår:
+ Minimere
+ Omstart Nå
+
+
+
+
+ Er is onvoldoende schijfruimte voor de installatie van:
+ {0}
+
+ Ruimte nodig: {1}MB
+ Ruimte beschikbaar: {2}MB
+
+ Gelieve voldoende schijfruimte vrij te maken om de installatie te starten.
+ Doorgaan
+ Selecteer alleen 'Doorgaan' na het sluiten van de bovenstaande toepassing(en).
+ Sluit Applicaties
+ Uitstel
+ De volgende applicaties moeten afgesloten worden om de installatie te voltooien.
+
+ Sla je werk op, sluit de applicaties, en ga verder.
+ Of, sla je werk op en klik op 'Sluit Applicaties'.
+ LET OP: De applicatie(s) worden afgesloten over:
+ De volgende applicatie wordt zometeen geïnstalleerd:
+ Je kan de installatie uitstellen tot het maximale uitsteltermijn is verstreken:
+ Na verstrijken van het uitsteltermijn is deze optie niet langer beschikbaar.
+ Aantal keer uitstellen:
+ Deadline:
+
+ De {0} gaat automatisch door over:
+
+
+ Installatie
+ Verwijderen
+ Reparatie
+ gestart
+ voltooid
+ voltooid. Een herstart is nodig
+ gefaald
+ onvolledig
+ Installatie bezig. Even geduld...
+ Verwijderen bezig. Even geduld...
+ Reparatie bezig. Even geduld...
+ Het opstarten van deze applicatie werd tijdelijk geblokkeerd om een installatie uit te voeren.
+ Herstart nodig
+ Om de installatie te voltooien is een herstart nodig.
+ Gelieve je werk op te slaan en binnen het toegestane termijn de computer herstarten
+ De computer zal herstarten als de teller op nul staat
+ Resterende tijd:
+ Minimaliseren
+ Herstart Nu
+
+
+
+
+ Brak miejsca na dysku:
+ {0}
+
+ Potrzeba: {1}MB
+ Obecnie wolnego miejsca: {2}MB
+
+ Proszę zwiększyć ilość miejsca usuwając zbędne pliki.
+ Kontynuuj
+ Tylko wybrać „Kontynuuj” po zamknięciu wyżej wymienione aplikacje.
+ Zamknij Programy
+ Odłóż
+ Następujące programy muszą zostać zamknięte przed rozpoczęciem instalacji.
+
+ Proszę zapisać wszystkie dokumenty i zamknąć programy, a następnie kliknąć przycisk „Kontynuuj”.
+ Alternatywnie zapisz wszystkie dokumenty i kliknij przycisk „Zamknij Programy”.
+ UWAGA: Programy zostaną automatycznie zamknięte za:
+ Zostanie zainstalowana następująca aplikacja:
+ Instalacja może zostać przełożona na późniejszy termin.
+ Jeżeli zostanie przekroczona możliwa ilość przełożeń, opcja „Odłóż” będzie niedostępna.
+ Pozostała ilość przełożeń instalacji:
+ Ostateczny termin instalacji:
+
+ The {0} will automatically continue in:
+
+
+ Instalacja
+ Deinstalacja
+ Naprawa
+ rozpoczęta.
+ zakończona.
+ zakończona. Wymagany jest restart komputera.
+ nie powiodła się.
+ nieukończona.
+ Trwa instalacja. Proszę czekać...
+ Trwa deinstalacja. Proszę czekać...
+ Trwa naprawa. Proszę czekać...
+ Uruchomienie tej aplikacji zostało zablokowane na okres instalacji.
+ Wymagany Restart
+ Aby instalacja została poprawnie ukończona wymagany jest restart komputera.
+ Proszę zapisać wszystkie dokumenty i zrestartować komputer w wyznaczonym czasie.
+ Komputer zostanie automatycznie zrestartowany po upływie wyznaczonego czasu.
+ Pozostały czas do restartu automatycznego:
+ Zminimalizować
+ Restartuj Teraz
+
+
+
+
+ Você não tem espaço em disco suficiente para concluir a instalação de:
+ {0}
+
+ Espaço necessário: {1}MB
+ Espaço disponível: {2}MB
+
+ Por favor, espaço livre em disco suficiente, a fim de prosseguir com a instalação.
+ Continuar
+ Selecione "Continuar" somente após fechar a(s) aplicação(ões) listada(s) abaixo.
+ Fechar Programas
+ Adiar
+ Programas de seguir devem ser fechados antes que a instalação possa prosseguir.
+
+ Por favor, guarde o seu trabalho, feche os programas e em seguida continuar.
+ Como alternativa, salve seu trabalho e clique em "Fechar Programas".
+ NOTA: O programa será fechado automaticamente em:
+ O seguinte aplicativo está prestes a ser instalado:
+ Você pode optar por adiar a instalação até que expire o diferimento:
+ Uma vez que o diferimento expirou, você já não terá a opção de adiar a.
+ Restantes diferimentos:
+ Prazo:
+
+ The {0} will automatically continue in:
+
+
+ Instalação
+ Desinstalação
+ Reparação
+ começou a.
+ completo.
+ completa. Uma reinicialização é necessária.
+ falhou.
+ não completar.
+ Instalação em andamento. Por favor aguarde...
+ Desinstalação em andamento. Por favor aguarde...
+ Reparação em andamento. Por favor aguarde...
+ Lançar este aplicativo está temporariamente bloqueado para que possa concluir uma operação de instalação.
+ Reinicialização Necessária
+ Em ordem para completar a instalação, você deve reiniciar seu computador.
+ Por favor, salve o trabalho e reiniciar no tempo alocado.
+ Seu computador será reiniciado automaticamente no final da contagem regressiva.
+ Tempo restante:
+ Minimizar
+ Reinicie Agora
+
+
+
+
+ Você não tem espaço em disco suficiente para concluir a instalação de:
+ {0}
+
+ Espaço necessário: {1}MB
+ Espaço disponível: {2}MB
+
+ Libere espaço em disco suficiente para prosseguir com a instalação.
+ Continuar
+ Apenas selecione "Continuar" depois de fechar aplicativo(s) acima.
+ Fechar Programas
+ Adiar
+ Os seguintes programas precisam ser fechados antes que a instalação possa prosseguir.
+
+ Salve seu trabalho, feche os programas e depois continue.
+ Como alternativa, salve seu trabalho e clique em "Fechar Programas".
+ OBSERVAÇÃO: O(s) programa(s) será(ão) automaticamente fechado(s) em:
+ O seguinte aplicativo está prestes a ser instalado:
+ Você pode optar por adiar a instalação até que o adiamento expire:
+ Depois que o adiamento expirar, você não terá mais a opção de adiar.
+ Adiamentos Restantes:
+ Prazo:
+
+ The {0} will automatically continue in:
+
+
+ Instalação
+ Desinstalação
+ Reparação
+ iniciada.
+ concluída.
+ concluída. É necessário reiniciar.
+ falhou.
+ não concluída.
+ Instalação em andamento. Aguarde...
+ Desinstalação em andamento. Aguarde...
+ Reparação em andamento. Aguarde...
+ A execução deste aplicativo foi temporariamente bloqueada para que uma operação de instalação seja concluída.
+ Reinicialização Necessária
+ Para que a instalação seja concluída, é necessário reiniciar o computador.
+ Salve seu trabalho e reinicie dentro do prazo estipulado.
+ Seu computador será reiniciado automaticamente no final da contagem regressiva.
+ Tempo restante:
+ Minimizar
+ Reiniciar Agora
+
+
+
+
+ Usted no tiene suficiente espacio en disco para completar la instalación de:
+ {0}
+
+ Espacio requerido: {1}MB
+ Espacio disponible: {2}MB
+
+ Por favor, espacio en disco libre suficiente para proceder con la instalación.
+ Continuar
+ Seleccione "Continuar" después de cerrar la(s) aplicacion(es) de la lista arriba.
+ Cerrar Programas
+ Aplazar
+ Los siguientes programas deben cerrarse antes de la instalación puede proceder.
+
+ Por favor, guarde el trabajo, cerrar los programas y luego continuar.
+ Alternativamente, guarde su trabajo y haga clic en "Cerrar Programas".
+ NOTA: El programa se cerrará automáticamente en:
+ La siguiente aplicación está a punto de instalarse:
+ Puede decidir aplazar la instalación hasta que expire el aplazamiento:
+ Una vez vencido el aplazamiento, ya no tendrá la opción de aplazar.
+ Restante aplazamientos:
+ Plazo:
+
+ The {0} will automatically continue in:
+
+
+ Instalación
+ Desinstalación
+ Reparación
+ comenzó a.
+ completa.
+ completa. Se requiere un reinicio.
+ failed.
+ no.
+ Instalación en curso. Por favor, espere...
+ Desinstalación en curso. Por favor, espere...
+ Reparación en curso. Por favor, espere...
+ Lanzar esta aplicación ha sido bloqueado temporalmente para que pueda completar una operación de instalación.
+ Reiniciar Requerido
+ En orden para completar la instalación, debe reiniciar su computadora.
+ Por favor guarde su trabajo y reinicie dentro del tiempo asignado.
+ El ordenador se reiniciará automáticamente al final de la cuenta regresiva de.
+ Tiempo restante:
+ Minimizar
+ Reiniciar Ahora
+
+
+
+
+ Du har inte tillräckligt med ledigt diskutrymme för att kunna installera:
+ {0}
+
+ Diskutrymme som krävs: {1}MB
+ Ledigt diskutrymme: {2}MB
+
+ Frigör utrymme på hårddisken och försök igen.
+ Fortsätt
+ Välj "Fortsätt" endast efter att ha stängt applikation(er) i ovanstående lista.
+ Stäng Program
+ Skjut upp
+ Följande program måste stängas innan installationen kan fortsätta.
+
+ Se till att spara ditt arbete, stäng de öppna programmen och klicka sen på "Fortsätt".
+ Alternativt, spara ditt arbete och klicka på "Stäng Program".
+ OBS: Programmen kommer automatiskt att avslutas om:
+ Följande applikation kommer att installeras:
+ Du kan välja att fördröja installationen ett begränsat antal gånger under en begränsad tid:
+ När antalet fördröjningar är slut eller deadlinen inträffar är detta alternativ inte längre tillgängligt.
+ Antal återstående fördröjningar:
+ Deadline:
+
+ The {0} will automatically continue in:
+
+
+ Installation
+ Avinstallation
+ Reparation
+ startad.
+ slutförd.
+ slutförd. En omstart av datorn är nödvändig.
+ misslyckades.
+ ej slutförd.
+ Installation pågår. Var god vänta...
+ Avinstallation pågår. Var god vänta...
+ Reparation pågår. Var god vänta...
+ Den här applikationen har temporärt blockerats så att installationen kan slutföras.
+ Omstart Krävs
+ För att installationen ska kunna slutföras måste din dator startas om.
+ Se till att spara ditt arbete innan tiden går ut och en automatisk omstart sker.
+ Din dator kommer automatiskt att starta om när nedräkningen är slut.
+ Återstående tid:
+ Minimera
+ Starta Om Nu
+
+
+
+
+ ليس لديك مساحة كافية في القرص لإتمام عملية تثبيت:
+ {0}
+
+ المساحة اللازمة: {1} م ب
+ المساحة المتاحة: {2} م ب
+
+ يرجى تحرير مساحة قرص كافية كي تتم متابعة عملية التثبيت.
+ متابعة
+ قم باختيار "متابعة" فقط بعد إغلاق التطبيق/التطبيقات المدرجة أعلاه.
+ إغلاق البرامج
+ تأجيل
+ يجب إغلاق البرامج التالية قبل التمكن من متابعة عملية التثبيت.
+
+ يرجى حفظ عملك، وإغلاق البرامج، ومن ثم المتابعة.
+ يمكنك بدلا من ذلك، حفظ عملك والنقر فوق "إغلاق البرامج".
+ ملاحظة: سيتم إغلاق البرنامج/البرامج بشكل تلقائي خلال:
+ التطبيق التالي على وشك التثبيت:
+ بإمكانك اختيار تأجيل التثبيت إلى حين انتهاء صلاحية التأجيل:
+ بمجرد انتهاء صلاحية التأجيل، لن يكون لديك خيار التأجيل بعد الآن.
+ التأجيلات المتبقية:
+ الموعد النهائي:
+
+ The {0} will automatically continue in:
+
+
+ تثبيت
+ إزالة التثبيت
+ إصلاح
+ بدأ.
+ تم.
+ تم. يجب إعادة تشغيل النظام.
+ فشل.
+ غير مكتمل.
+ جاري التثبيت. يرجى الانتظار...
+ جارٍ إزالة التثبيت. يرجى الانتظار...
+ جارٍ إصلاح. يرجى الانتظار...
+ تم تعطيل تشغيل هذا التطبيق مؤقتًا بحيث يمكن إكمال عملية التثبيت.
+ مطلوب إعادة التشغيل
+ كي تكتمل عملية التثبيت، يجب عليك إعادة تشغيل حاسوبك.
+ يرجى حفظ عملك وإعادة التشغيل خلال الوقت المخصص.
+ ستتم إعادة تشغيل حاسوبك بشكل تلقائي عند نهاية العد التنازلي.
+ الزمن المتبقي:
+ تقليل
+ إعادة التشغيل الآن
+
+
+
+
+ :אין לך מספיק מקום בכונן כדי להשלים את ההתקנה של:
+ {0}
+
+ מקום נדרש: {1}מ"ב
+ מקום זמין: {2}מ"ב
+
+ אנא שחרר מספיק מקום בכונן כדי להתחיל בהתקנה.
+ המשך
+ בחר "המשך" רק לאחר שסגרת את היישום(ים) הרשומים לעיל.
+ סגור תכניות
+ דחה
+ יש לסגור את התכנות הבאות בטרם ההתקנה תוכל להתחיל.
+
+ אנא שמור על העבודה שלך, סגור את התכניות, ואז המשך.
+ לחילופין, שמור על העבודה שלך והקלק על "סגור תכניות".
+ שים לב: התכנית(ות) תסגרנה באופן אוטומטי תוך:
+ היישום הבא עומד להיות מותקן:
+ אתה יכול לבחור לדחות את ההתקנה עד שמשך זמן הדחיה יפוג.
+ לאחר שמשך זמן הדחיה יפוג, לא תהיה לך עוד אפשרות לדחות.
+ מספר הדחיות שנותרו:
+ תאריך יעד:
+
+ The {0} will automatically continue in:
+
+
+ התקנה
+ הסרה
+ תיקון
+ התחילה.
+ הושלמה.
+ הושלמה. נדרש אתחול המחשב.
+ נכשלה.
+ לא הושלמה.
+ מבצע התקנה. נא להמתין.
+ מבצע הסרה. נא להמתין.
+ מבצע תיקון. נא להמתין.
+ הרצת היישום הזה נחסמה זמנית כדי שפעולת התקנה תוכל להסתיים.
+ נדרש אתחול המחשב
+ כדי להשלים את ההתקנה, עליך לאתחל את המחשב שלך מחדש.
+ אנא שמור על העבודה שלך ואתחל במסגרת הזמן המוקצב.
+ המחשב שלך יאותחל באופן אוטומטי בסיום הספירה לאחור.
+ הזמן הנותר:
+ מזער את
+ אתחל עכשיו
+
+
+
+
+ 다음의 설치 완료를 위해 필요한 디스크 공간이 충분하지 않습니다:
+ {0}
+
+ 필요한 공간: {1}MB
+ 사용 가능한 공간: {2}MB
+
+ 설치를 계속하려면 디스크 공간을 충분하게 확보하세요.
+ 계속
+ 위에 표시된 응용 프로그램을 종료한 후에만 "계속"을 선택하세요.
+ 프로그램 종료
+ 연기
+ 설치를 계속하려면 다음의 프로그램을 종료해야 합니다.
+
+ 사용자 작업을 저장하고 프로그램을 종료한 후 계속하세요.
+ 다른 방법으로는 사용자 작업을 저장하고 "프로그램 종료"를 클릭하세요.
+ 참고: 프로그램이 자동으로 종료되는 경우:
+ 다음의 응용 프로그램을 설치합니다:
+ 지연 기간이 만료될 때까지 설치를 연기할 수 있습니다:
+ 일단 지연 기간이 만료되면 더 이상 연기할 수 있는 옵션은 없습니다.
+ 남은 지연 기간:
+ 마감:
+
+ The {0} will automatically continue in:
+
+
+ 설치
+ 제거
+ 수리
+ 시작되었습니다.
+ 완료되었습니다.
+ 완료되었습니다. 재부팅이 필요합니다.
+ 실패했습니다.
+ 완료되지 않았습니다.
+ 설치 중입니다. 기다리세요...
+ 제거 중입니다. 기다리세요...
+ 수리 중입니다. 기다리세요...
+ 설치 작업을 완료할 수 있도록 응용 프로그램의 시작을 잠시 차단했습니다.
+ 다시 시작해야 합니다
+ 설치를 완료하려면 컴퓨터를 다시 시작해야 합니다.
+ 사용자 작업을 저장하고 지정된 시간 이내에 다시 시작하세요.
+ 카운트다운이 종료되면 컴퓨터는 자동으로 다시 시작합니다.
+ 남은 시간:
+ 최소화
+ 지금 다시 시작
+
+
+
+
+ У вас недостаточно пространства на диске для выполнения установки:
+ {0}
+
+ Необходимое пространство на диске: {1}МБ
+ Доступное пространство на диске: {2}МБ
+
+ Для продолжения установки, пожалуйста, освободите достаточно пространства на диске.
+ Продолжить
+ Выберите "Продолжить" только после закрытия вышеперечисленных приложений.
+ Закрыть программы
+ Отложить
+ Перед продолжением установки необходимо закрыть следующие программы.
+
+ Пожалуйста, сохраните вашу работу и закройте программы, а затем продолжите установку.
+ Также вы можете сохранить вашу работу и нажать "Закрыть программы".
+ ПРИМЕЧАНИЕ: Эти программы будут автоматически закрыты через:
+ Планируется установка следующего приложения:
+ Вы можете отложить установку приложения до тех пор, пока не истечет срок действия этой отсрочки:
+ После истечения срока действия отсрочки вы больше не сможете отложить установку.
+ Оставшиеся отсрочки:
+ Дата истечения:
+
+ The {0} will automatically continue in:
+
+
+ Установка
+ Удаление
+ ремонт
+ начата.
+ выполнена.
+ выполнена. Требуется перезагрузка.
+ не выполнена.
+ не завершена.
+ Идет установка. Пожалуйста, подождите...
+ Идет удаление. Пожалуйста, подождите...
+ Идет ремонт. Пожалуйста, подождите...
+ Запуск этого приложения временно заблокирован для завершения процесса установки.
+ Требуется перезагрузка
+ Для завершения установки необходимо перезагрузить ваш компьютер.
+ Пожалуйста, сохраните вашу работу и выполните перезагрузку в отведенное время.
+ Ваш компьютер будет автоматически перезагружен по завершению обратного отсчета.
+ Оставшееся время:
+ Минимизировать
+ Перезагрузить сейчас
+
+
+
+
+ 没有足够的磁盘空间来完成下列安装:
+ {0}
+
+ 所需空间:{1}MB
+ 可用空间:{2}MB
+
+ 请释放足够的磁盘空间以继续安装。
+ 继续
+ 在关闭上列应用程式后才选择"继续"。
+ 关闭程序
+ 延迟
+ 为继续安装,必须关闭下列程序。
+
+ 请保存您的工作,关闭程序,然后继续。
+ 或者保存您的工作,点击"关闭程序"。
+ 注:下列程序将自动关闭:
+ 即将安装下列应用程式:
+ 在延期失效前,可选择延迟安装:
+ 延期失效后,再也无法延迟安装。
+ 所剩延期:
+ 最后期限:
+
+ The {0} will automatically continue in:
+
+
+ 安装
+ 卸载
+ 修复
+ 已启动。
+ 完成。
+ 完成。必须重新启动。
+ 失败。
+ 未完成。
+ 安装中。请稍等。。。
+ 卸载中。请稍等。。。
+ 修复中。请稍等。。。
+ 为完成安装过程,暂时禁止启动这款应用程式。
+ 需重启
+ 为完成安装过程,需重启计算机。
+ 请保存您的工作,并在容许时间重启计算机。
+ 倒计时结束后,计算机将自动重启。
+ 剩余时间:
+ 最小化
+ 现在重启
+
+
+
+
+ 沒有足夠的磁盤空間來完成下列安裝:
+ {0}
+
+ 所需空間: {1}MB
+ 可用空間: {2}MB
+
+ 請釋放足夠的磁盤空間以繼續安裝。
+ 繼續
+ 關閉上列應用程式後才選擇"繼續"。
+ 關閉程序
+ 延遲
+ 在繼續安裝前必須關閉下列程序。
+
+ 請保存您的工作,關閉程序,然後繼續。
+ 或者保存您的工作,然後點擊"關閉程序"。
+ 注:下列程序將自動關閉:
+ 即將安裝下列應用程式:
+ 在延期失效前,可選擇延遲安裝:
+ 延期失效後,再也無法延遲安裝。
+ 所剩延期:
+ 最後期限:
+
+ The {0} will automatically continue in:
+
+
+ 安裝
+ 卸載
+ 修復
+ 已啟動。
+ 完成。
+ 完成。需重啟。
+ 失敗。
+ 未完成。
+ 安裝中。請稍等。。。
+ 卸載中。請稍等。。。
+ 修復中。請稍等。。。
+ 為完成安裝過程,暫時禁止啟動本款應用程式。
+ 需重啟
+ 未完成安裝過程,需重啟計算機。
+ 請保存您的工作,然後在容許時間重啟計算機。
+ 倒計時結束後,計算機將自動重啟。
+ 剩餘時間:
+ 最小化
+ 現在重啟
+
+
+
+
+ Nemáte dostatok voľného miesta na dokončenie inštalácie:
+ {0}
+
+ Potrebné miesto: {1}MB
+ Voľné miesto: {2}MB
+
+ Prosím, uvoľnite dostatok miesta pre pokračovanie inštalácie.
+ Pokračovať
+ Kliknite na "Pokračovať", keď zavriete vyššie uvedené aplikácie.
+ Ukončiť programy
+ Oddialiť
+ Nasledujúce programy musia byť zatvorené, než bude inštalácia pokračovať.
+
+ Prosím, uložte svoju prácu, zatvorte dané programy a potom kliknite na pokračovať.
+ Prípadne môžete uložiť svoju prácu a potom kliknite na tlačidlo "Ukončiť programy".
+ Poznámka: Programy budú automaticky ukončené za:
+ Nasledujúca aplikácia bude nainštalovaná:
+ Inštaláciu môžete niekoľkokrát odložiť:
+ Akonáhle odklady uplynú, už nebudete mať možnosť odložiť inštaláciu.
+ Zostávajúce odklady:
+ Termín:
+
+ {0} bude automaticky pokračovať za:
+
+
+ Inštalácia
+ Odinštalácia
+ Oprava
+ spustená.
+ ukončená.
+ ukončená. Je nutný reštart.
+ sa nepodarila.
+ nedokončená.
+ Inštalácia sa vykonáva. Prosím čakajte...
+ Prebieha odinštalácia. Prosím čakajte...
+ Vykonáva sa oprava. Prosím čakajte...
+ Spustenie tejto aplikácie bolo dočasne zablokované, aby mohla byť inštalácia dokončená úspešne.
+ Je nutný reštart.
+ Na dokončenie inštalácie musíte váš počítač reštartovať.
+ Prosím, uložte si prácu a reštartujte počítač v stanovenej lehote.
+ Na konci odpočítavania, bude váš počítač automaticky reštartovaný.
+ Zostávajúci čas:
+ Minimalizovať
+ Reštartovať Teraz
+
+
+
+
+ Nemáte dostatek volného místa na instalaci aplikace:
+ {0}
+
+ Potřebné místo na disku: {1}MB
+ Dostupné místo na disku: {2}MB
+
+ Uvolněte prosím dostatek místa k pokračovaní instalace.
+ Pokračovat
+ Klikněte na "Pokračovat", až budete mít výše uvedené aplikace zavřené.
+ Ukončit programy
+ Odložit
+ Následující programy musí být zavřené, aby instalace mohla pokračovat.
+
+ Prosím, uložte svou práci, zavřete program a potom klikněte na "Pokračovat".
+ Případně můžete svou práci uložit a kliknout na tlačítko "Ukončit programy".
+ Upozornění: Programy budou automaticky zavřené za:
+ Nasledující aplikace bude nainstalována:
+ Instalaci můžete několikrát odložit:
+ Jakmile vyčerpáte všechna odložení, už nebudete mít šanci odložit instalaci.
+ Zbývající počet odložení:
+ Termín:
+
+ {0} bude automaticky pokračovat za:
+
+
+ Instalace
+ Odinstalace
+ Oprava
+ zahájena.
+ dokončena.
+ dokončena. Je nutné restartovat počítač.
+ se nepodařila.
+ nedokončena.
+ Instalace právě probíhá. Prosím čekejte...
+ Probíhá odinstalace. Prosím čekejte...
+ Oprava právě probíhá. Prosím čekejte...
+ Spuštění této aplikace bylo dočasně zakázáno, aby mohla proběhnout instalace.
+ Je nutné restartovat počítač.
+ Pro dokončení instalace musíte váš počítač restartovat.
+ Prosím, uložte si práci a restartujte počítač ve stanoveném čase.
+ Na konci odpočítávání, bude váš počítač automaticky restartovaný.
+ Zbývající čas:
+ Minimalizovat
+ Restartovat nyní
+
+
+
+
+ Nincs elég lemezterület a telepítés végrehajtásához:
+ {0}
+ Szükséges lemezterület: {1}MB
+ Szabad lemezterület: {2}MB
+ Kérem szabadítson fel elegendő lemezterületet a telepítés végrehajtásához.
+ Tovább
+ Csak azután kattintson a „Tovább”-ra, ha a fentebb látható alkalmazás(oka)t bezárta.
+ Alkalmazások bezárása
+ Elhalaszt
+ Az alábbi programokat szíveskedjen bezárni, mielőtt a telepítés elkezdődik.
+
+ Kérjük mentse munkáját és a folytatáshoz zárja be a futó alkalmazásokat.
+ Vagy
+ Kérjük mentse munkáját és kattintson a „Programok bezárása”-ra.
+ Megjegyzés: a programok automatikusan bezárásra kerülnek,:
+ A következő alkalmazások telepítésre kerülnek:
+ A telepítést elhalaszthatja amíg a rendelkezésre álló idő lejár:
+ Amennyiben a rendelkezésre álló idő letelik, nem lesz lehetősége a telepítés elhalasztására.
+ Fennmaradó halasztás:
+ Időpont:
+
+ A(z) {0} automatikusan folytatódik:
+
+
+ Telepítés
+ Eltávolítás
+ Javítás
+ elindult.
+ elkészült.
+ elkészült.Újraindítás szükséges.
+ sikertelen.
+ nem lehet befejezni.
+ Telepítés folyamatban. Kérem várjon...
+ Eltávolítás folyamatban. Kérem várjon...
+ Javítás folyamatban. Kérem várjon...
+ A következő alkalmazások blokkolva lesznek, annak érdekében hogy a telepítés problémamentesen végrehajtódjon.
+ Újraindítás szükséges
+ A telepítés befejezéséhez a számítógépet újraindítása szükséges.
+ Kérem mentse munkáját, és a megadott időn belül indítsa újra..
+ A hátralévő idő leteltével a számítógép újraindul.
+ Hátralévő idő:
+ Minimalizál
+ Újraindítás most
+
+
+
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitExtensions.ps1 b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitExtensions.ps1
new file mode 100644
index 0000000..668b74d
--- /dev/null
+++ b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitExtensions.ps1
@@ -0,0 +1,56 @@
+<#
+.SYNOPSIS
+ This script is a template that allows you to extend the toolkit with your own custom functions.
+ # LICENSE #
+ PowerShell App Deployment Toolkit - Provides a set of functions to perform common application deployment tasks on Windows.
+ Copyright (C) 2017 - Sean Lillis, Dan Cunningham, Muhammad Mashwani, Aman Motazedian.
+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see .
+.DESCRIPTION
+ The script is automatically dot-sourced by the AppDeployToolkitMain.ps1 script.
+.NOTES
+ Toolkit Exit Code Ranges:
+ 60000 - 68999: Reserved for built-in exit codes in Deploy-Application.ps1, Deploy-Application.exe, and AppDeployToolkitMain.ps1
+ 69000 - 69999: Recommended for user customized exit codes in Deploy-Application.ps1
+ 70000 - 79999: Recommended for user customized exit codes in AppDeployToolkitExtensions.ps1
+.LINK
+ http://psappdeploytoolkit.com
+#>
+[CmdletBinding()]
+Param (
+)
+
+##*===============================================
+##* VARIABLE DECLARATION
+##*===============================================
+
+# Variables: Script
+[string]$appDeployToolkitExtName = 'PSAppDeployToolkitExt'
+[string]$appDeployExtScriptFriendlyName = 'App Deploy Toolkit Extensions'
+[version]$appDeployExtScriptVersion = [version]'3.8.3'
+[string]$appDeployExtScriptDate = '30/09/2020'
+[hashtable]$appDeployExtScriptParameters = $PSBoundParameters
+
+##*===============================================
+##* FUNCTION LISTINGS
+##*===============================================
+
+#
+
+##*===============================================
+##* END FUNCTION LISTINGS
+##*===============================================
+
+##*===============================================
+##* SCRIPT BODY
+##*===============================================
+
+If ($scriptParentPath) {
+ Write-Log -Message "Script [$($MyInvocation.MyCommand.Definition)] dot-source invoked by [$(((Get-Variable -Name MyInvocation).Value).ScriptName)]" -Source $appDeployToolkitExtName
+} Else {
+ Write-Log -Message "Script [$($MyInvocation.MyCommand.Definition)] invoked directly" -Source $appDeployToolkitExtName
+}
+
+##*===============================================
+##* END SCRIPT BODY
+##*===============================================
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitHelp.ps1 b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitHelp.ps1
new file mode 100644
index 0000000..2d796e0
--- /dev/null
+++ b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitHelp.ps1
@@ -0,0 +1,130 @@
+<#
+.SYNOPSIS
+ Displays a graphical console to browse the help for the App Deployment Toolkit functions
+ # LICENSE #
+ PowerShell App Deployment Toolkit - Provides a set of functions to perform common application deployment tasks on Windows.
+ Copyright (C) 2017 - Sean Lillis, Dan Cunningham, Muhammad Mashwani, Aman Motazedian.
+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see .
+.DESCRIPTION
+ Displays a graphical console to browse the help for the App Deployment Toolkit functions
+.EXAMPLE
+ AppDeployToolkitHelp.ps1
+.NOTES
+.LINK
+ http://psappdeploytoolkit.com
+#>
+
+##*===============================================
+##* VARIABLE DECLARATION
+##*===============================================
+
+## Variables: Script
+[string]$appDeployToolkitHelpName = 'PSAppDeployToolkitHelp'
+[string]$appDeployHelpScriptFriendlyName = 'App Deploy Toolkit Help'
+[version]$appDeployHelpScriptVersion = [version]'3.8.3'
+[string]$appDeployHelpScriptDate = '30/09/2020'
+
+## Variables: Environment
+[string]$scriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
+# Dot source the App Deploy Toolkit Functions
+. "$scriptDirectory\AppDeployToolkitMain.ps1" -DisableLogging
+. "$scriptDirectory\AppDeployToolkitExtensions.ps1"
+##*===============================================
+##* END VARIABLE DECLARATION
+##*===============================================
+
+##*===============================================
+##* FUNCTION LISTINGS
+##*===============================================
+
+Function Show-HelpConsole {
+ ## Import the Assemblies
+ Add-Type -AssemblyName 'System.Windows.Forms' -ErrorAction 'Stop'
+ Add-Type -AssemblyName System.Drawing -ErrorAction 'Stop'
+
+ ## Form Objects
+ $HelpForm = New-Object -TypeName 'System.Windows.Forms.Form'
+ $HelpListBox = New-Object -TypeName 'System.Windows.Forms.ListBox'
+ $HelpTextBox = New-Object -TypeName 'System.Windows.Forms.RichTextBox'
+ $InitialFormWindowState = New-Object -TypeName 'System.Windows.Forms.FormWindowState'
+
+ ## Form Code
+ $System_Drawing_Size = New-Object -TypeName 'System.Drawing.Size'
+ $System_Drawing_Size.Height = 665
+ $System_Drawing_Size.Width = 957
+ $HelpForm.ClientSize = $System_Drawing_Size
+ $HelpForm.DataBindings.DefaultDataSourceUpdateMode = 0
+ $HelpForm.Name = 'HelpForm'
+ $HelpForm.Text = 'PowerShell App Deployment Toolkit Help Console'
+ $HelpForm.WindowState = 'Normal'
+ $HelpForm.ShowInTaskbar = $true
+ $HelpForm.FormBorderStyle = 'Fixed3D'
+ $HelpForm.MaximizeBox = $false
+ $HelpForm.Icon = New-Object -TypeName 'System.Drawing.Icon' -ArgumentList $AppDeployLogoIcon
+ $HelpListBox.Anchor = 7
+ $HelpListBox.BorderStyle = 1
+ $HelpListBox.DataBindings.DefaultDataSourceUpdateMode = 0
+ $HelpListBox.Font = New-Object -TypeName 'System.Drawing.Font' -ArgumentList ('Microsoft Sans Serif', 9.75, 1, 3, 1)
+ $HelpListBox.FormattingEnabled = $true
+ $HelpListBox.ItemHeight = 16
+ $System_Drawing_Point = New-Object -TypeName 'System.Drawing.Point'
+ $System_Drawing_Point.X = 0
+ $System_Drawing_Point.Y = 0
+ $HelpListBox.Location = $System_Drawing_Point
+ $HelpListBox.Name = 'HelpListBox'
+ $System_Drawing_Size = New-Object -TypeName 'System.Drawing.Size'
+ $System_Drawing_Size.Height = 658
+ $System_Drawing_Size.Width = 271
+ $HelpListBox.Size = $System_Drawing_Size
+ $HelpListBox.Sorted = $true
+ $HelpListBox.TabIndex = 2
+ $HelpListBox.add_SelectedIndexChanged({ $HelpTextBox.Text = Get-Help -Name $HelpListBox.SelectedItem -Full | Out-String })
+ $helpFunctions = Get-Command -CommandType 'Function' | Where-Object { ($_.HelpUri -match 'psappdeploytoolkit') -and ($_.Definition -notmatch 'internal script function') } | Select-Object -ExpandProperty Name
+ $null = $HelpListBox.Items.AddRange($helpFunctions)
+ $HelpForm.Controls.Add($HelpListBox)
+ $HelpTextBox.Anchor = 11
+ $HelpTextBox.BorderStyle = 1
+ $HelpTextBox.DataBindings.DefaultDataSourceUpdateMode = 0
+ $HelpTextBox.Font = New-Object -TypeName 'System.Drawing.Font' -ArgumentList ('Microsoft Sans Serif', 8.5, 0, 3, 1)
+ $HelpTextBox.ForeColor = [System.Drawing.Color]::FromArgb(255, 0, 0, 0)
+ $System_Drawing_Point = New-Object -TypeName System.Drawing.Point
+ $System_Drawing_Point.X = 277
+ $System_Drawing_Point.Y = 0
+ $HelpTextBox.Location = $System_Drawing_Point
+ $HelpTextBox.Name = 'HelpTextBox'
+ $HelpTextBox.ReadOnly = $True
+ $System_Drawing_Size = New-Object -TypeName 'System.Drawing.Size'
+ $System_Drawing_Size.Height = 658
+ $System_Drawing_Size.Width = 680
+ $HelpTextBox.Size = $System_Drawing_Size
+ $HelpTextBox.TabIndex = 1
+ $HelpTextBox.Text = ''
+ $HelpForm.Controls.Add($HelpTextBox)
+
+ ## Save the initial state of the form
+ $InitialFormWindowState = $HelpForm.WindowState
+ ## Init the OnLoad event to correct the initial state of the form
+ $HelpForm.add_Load($OnLoadForm_StateCorrection)
+ ## Show the Form
+ $null = $HelpForm.ShowDialog()
+}
+
+##*===============================================
+##* END FUNCTION LISTINGS
+##*===============================================
+
+##*===============================================
+##* SCRIPT BODY
+##*===============================================
+
+Write-Log -Message "Load [$appDeployHelpScriptFriendlyName] console..." -Source $appDeployToolkitHelpName
+
+## Show the help console
+Show-HelpConsole
+
+Write-Log -Message "[$appDeployHelpScriptFriendlyName] console closed." -Source $appDeployToolkitHelpName
+
+##*===============================================
+##* END SCRIPT BODY
+##*===============================================
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitLogo.ico b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitLogo.ico
new file mode 100644
index 0000000..21eed72
Binary files /dev/null and b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitLogo.ico differ
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.cs b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.cs
new file mode 100644
index 0000000..7d3f200
--- /dev/null
+++ b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.cs
@@ -0,0 +1,792 @@
+// Date Modified: 30/09/2020
+// Version Number: 3.8.3
+
+using System;
+using System.Text;
+using System.Collections;
+using System.ComponentModel;
+using System.DirectoryServices;
+using System.Security.Principal;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using System.Text.RegularExpressions;
+using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;
+
+namespace PSADT
+{
+ public class Msi
+ {
+ enum LoadLibraryFlags : int
+ {
+ DONT_RESOLVE_DLL_REFERENCES = 0x00000001,
+ LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010,
+ LOAD_LIBRARY_AS_DATAFILE = 0x00000002,
+ LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x00000040,
+ LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,
+ LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008
+ }
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, LoadLibraryFlags dwFlags);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ static extern int LoadString(IntPtr hInstance, int uID, StringBuilder lpBuffer, int nBufferMax);
+
+ // Get MSI exit code message from msimsg.dll resource dll
+ public static string GetMessageFromMsiExitCode(int errCode)
+ {
+ IntPtr hModuleInstance = LoadLibraryEx("msimsg.dll", IntPtr.Zero, LoadLibraryFlags.LOAD_LIBRARY_AS_DATAFILE);
+
+ StringBuilder sb = new StringBuilder(255);
+ LoadString(hModuleInstance, errCode, sb, sb.Capacity + 1);
+
+ return sb.ToString();
+ }
+ }
+
+ public class Explorer
+ {
+ private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
+ private const int WM_SETTINGCHANGE = 0x1a;
+ private const int SMTO_ABORTIFHUNG = 0x0002;
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ static extern bool SendNotifyMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ private static extern IntPtr SendMessageTimeout(IntPtr hWnd, int Msg, IntPtr wParam, string lParam, int fuFlags, int uTimeout, IntPtr lpdwResult);
+
+ [DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
+ public static void RefreshDesktopAndEnvironmentVariables()
+ {
+ // Update desktop icons
+ SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
+ SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
+ // Update environment variables
+ SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, "Environment", SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
+ }
+ }
+
+ public sealed class FileVerb
+ {
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int LoadString(IntPtr h, int id, StringBuilder sb, int maxBuffer);
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr LoadLibrary(string s);
+
+ public static string GetPinVerb(int VerbId)
+ {
+ IntPtr hShell32 = LoadLibrary("shell32.dll");
+ const int nChars = 255;
+ StringBuilder Buff = new StringBuilder("", nChars);
+
+ LoadString(hShell32, VerbId, Buff, Buff.Capacity);
+ return Buff.ToString();
+ }
+ }
+
+ public sealed class IniFile
+ {
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool WritePrivateProfileString(string lpAppName, string lpKeyName, StringBuilder lpString, string lpFileName);
+
+ public static string GetIniValue(string section, string key, string filepath)
+ {
+ string sDefault = "";
+ const int nChars = 1024;
+ StringBuilder Buff = new StringBuilder(nChars);
+
+ GetPrivateProfileString(section, key, sDefault, Buff, Buff.Capacity, filepath);
+ return Buff.ToString();
+ }
+
+ public static void SetIniValue(string section, string key, StringBuilder value, string filepath)
+ {
+ WritePrivateProfileString(section, key, value, filepath);
+ }
+ }
+
+ public class UiAutomation
+ {
+ public enum GetWindow_Cmd : int
+ {
+ GW_HWNDFIRST = 0,
+ GW_HWNDLAST = 1,
+ GW_HWNDNEXT = 2,
+ GW_HWNDPREV = 3,
+ GW_OWNER = 4,
+ GW_CHILD = 5,
+ GW_ENABLEDPOPUP = 6
+ }
+
+ public enum ShowWindowEnum
+ {
+ Hide = 0,
+ ShowNormal = 1,
+ ShowMinimized = 2,
+ ShowMaximized = 3,
+ Maximize = 3,
+ ShowNormalNoActivate = 4,
+ Show = 5,
+ Minimize = 6,
+ ShowMinNoActivate = 7,
+ ShowNoActivate = 8,
+ Restore = 9,
+ ShowDefault = 10,
+ ForceMinimized = 11
+ }
+
+ public enum UserNotificationState
+ {
+ // http://msdn.microsoft.com/en-us/library/bb762533(v=vs.85).aspx
+ ScreenSaverOrLockedOrFastUserSwitching =1, // A screen saver is displayed, the machine is locked, or a nonactive Fast User Switching session is in progress.
+ FullScreenOrPresentationModeOrLoginScreen =2, // A full-screen application is running or Presentation Settings are applied. Presentation Settings allow a user to put their machine into a state fit for an uninterrupted presentation, such as a set of PowerPoint slides, with a single click. Also returns this state if machine is at the login screen.
+ RunningDirect3DFullScreen =3, // A full-screen, exclusive mode, Direct3D application is running.
+ PresentationMode =4, // The user has activated Windows presentation settings to block notifications and pop-up messages.
+ AcceptsNotifications =5, // None of the other states are found, notifications can be freely sent.
+ QuietTime =6, // Introduced in Windows 7. The current user is in "quiet time", which is the first hour after a new user logs into his or her account for the first time.
+ WindowsStoreAppRunning =7 // Introduced in Windows 8. A Windows Store app is running.
+ }
+
+ // Only for Vista or above
+ [DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ static extern int SHQueryUserNotificationState(out UserNotificationState pquns);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool EnumWindows(EnumWindowsProcD lpEnumFunc, ref IntPtr lParam);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetWindowTextLength(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ private static extern IntPtr GetDesktopWindow();
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ private static extern IntPtr GetShellWindow();
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool IsWindowEnabled(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern bool IsWindowVisible(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool IsIconic(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool ShowWindow(IntPtr hWnd, ShowWindowEnum flags);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr SetActiveWindow(IntPtr hwnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool SetForegroundWindow(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr GetForegroundWindow();
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr SetFocus(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern bool BringWindowToTop(IntPtr hWnd);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetWindowThreadProcessId(IntPtr hWnd, out int lpdwProcessId);
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetCurrentThreadId();
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern bool AttachThreadInput(int idAttach, int idAttachTo, bool fAttach);
+
+ [DllImport("user32.dll", EntryPoint = "GetWindowLong", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex);
+
+ [DllImport("user32.dll", EntryPoint = "GetWindowLongPtr", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr GetSystemMenu(IntPtr hWnd, bool bRevert);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern bool EnableMenuItem(IntPtr hMenu, uint uIDEnableItem, uint uEnable);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr DestroyMenu(IntPtr hWnd);
+
+ public delegate bool EnumWindowsProcD(IntPtr hWnd, ref IntPtr lItems);
+
+ public static bool EnumWindowsProc(IntPtr hWnd, ref IntPtr lItems)
+ {
+ if (hWnd != IntPtr.Zero)
+ {
+ GCHandle hItems = GCHandle.FromIntPtr(lItems);
+ List items = hItems.Target as List;
+ items.Add(hWnd);
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ public static List EnumWindows()
+ {
+ try
+ {
+ List items = new List();
+ EnumWindowsProcD CallBackPtr = new EnumWindowsProcD(EnumWindowsProc);
+ GCHandle hItems = GCHandle.Alloc(items);
+ IntPtr lItems = GCHandle.ToIntPtr(hItems);
+ EnumWindows(CallBackPtr, ref lItems);
+ return items;
+ }
+ catch (Exception ex)
+ {
+ throw new Exception("An error occured during window enumeration: " + ex.Message);
+ }
+ }
+
+ public static string GetWindowText(IntPtr hWnd)
+ {
+ int iTextLength = GetWindowTextLength(hWnd);
+ if (iTextLength > 0)
+ {
+ StringBuilder sb = new StringBuilder(iTextLength);
+ GetWindowText(hWnd, sb, iTextLength + 1);
+ return sb.ToString();
+ }
+ else
+ {
+ return String.Empty;
+ }
+ }
+
+ public static bool BringWindowToFront(IntPtr windowHandle)
+ {
+ bool breturn = false;
+ if (IsIconic(windowHandle))
+ {
+ // Show minimized window because SetForegroundWindow does not work for minimized windows
+ ShowWindow(windowHandle, ShowWindowEnum.ShowMaximized);
+ }
+
+ int lpdwProcessId;
+ int windowThreadProcessId = GetWindowThreadProcessId(GetForegroundWindow(), out lpdwProcessId);
+ int currentThreadId = GetCurrentThreadId();
+ AttachThreadInput(windowThreadProcessId, currentThreadId, true);
+
+ BringWindowToTop(windowHandle);
+ breturn = SetForegroundWindow(windowHandle);
+ SetActiveWindow(windowHandle);
+ SetFocus(windowHandle);
+
+ AttachThreadInput(windowThreadProcessId, currentThreadId, false);
+ return breturn;
+ }
+
+ public static int GetWindowThreadProcessId(IntPtr windowHandle)
+ {
+ int processID = 0;
+ GetWindowThreadProcessId(windowHandle, out processID);
+ return processID;
+ }
+
+ public static IntPtr GetWindowLong(IntPtr hWnd, int nIndex)
+ {
+ if (IntPtr.Size == 4)
+ {
+ return GetWindowLong32(hWnd, nIndex);
+ }
+ return GetWindowLongPtr64(hWnd, nIndex);
+ }
+
+ public static string GetUserNotificationState()
+ {
+ // Only works for Windows Vista or higher
+ UserNotificationState state;
+ int returnVal = SHQueryUserNotificationState(out state);
+ return state.ToString();
+ }
+ }
+
+ public class QueryUser
+ {
+ [DllImport("wtsapi32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern IntPtr WTSOpenServer(string pServerName);
+
+ [DllImport("wtsapi32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern void WTSCloseServer(IntPtr hServer);
+
+ [DllImport("wtsapi32.dll", CharSet = CharSet.Ansi, SetLastError = false)]
+ public static extern bool WTSQuerySessionInformation(IntPtr hServer, int sessionId, WTS_INFO_CLASS wtsInfoClass, out IntPtr pBuffer, out int pBytesReturned);
+
+ [DllImport("wtsapi32.dll", CharSet = CharSet.Ansi, SetLastError = false)]
+ public static extern int WTSEnumerateSessions(IntPtr hServer, int Reserved, int Version, out IntPtr pSessionInfo, out int pCount);
+
+ [DllImport("wtsapi32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern void WTSFreeMemory(IntPtr pMemory);
+
+ [DllImport("winsta.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int WinStationQueryInformation(IntPtr hServer, int sessionId, int information, ref WINSTATIONINFORMATIONW pBuffer, int bufferLength, ref int returnedLength);
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern int GetCurrentProcessId();
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = false)]
+ public static extern bool ProcessIdToSessionId(int processId, ref int pSessionId);
+
+ public class TerminalSessionData
+ {
+ public int SessionId;
+ public string ConnectionState;
+ public string SessionName;
+ public bool IsUserSession;
+ public TerminalSessionData(int sessionId, string connState, string sessionName, bool isUserSession)
+ {
+ SessionId = sessionId;
+ ConnectionState = connState;
+ SessionName = sessionName;
+ IsUserSession = isUserSession;
+ }
+ }
+
+ public class TerminalSessionInfo
+ {
+ public string NTAccount;
+ public string SID;
+ public string UserName;
+ public string DomainName;
+ public int SessionId;
+ public string SessionName;
+ public string ConnectState;
+ public bool IsCurrentSession;
+ public bool IsConsoleSession;
+ public bool IsActiveUserSession;
+ public bool IsUserSession;
+ public bool IsRdpSession;
+ public bool IsLocalAdmin;
+ public DateTime? LogonTime;
+ public TimeSpan? IdleTime;
+ public DateTime? DisconnectTime;
+ public string ClientName;
+ public string ClientProtocolType;
+ public string ClientDirectory;
+ public int ClientBuildNumber;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ private struct WTS_SESSION_INFO
+ {
+ public Int32 SessionId;
+ [MarshalAs(UnmanagedType.LPStr)]
+ public string SessionName;
+ public WTS_CONNECTSTATE_CLASS State;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct WINSTATIONINFORMATIONW
+ {
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 70)]
+ private byte[] Reserved1;
+ public int SessionId;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
+ private byte[] Reserved2;
+ public FILETIME ConnectTime;
+ public FILETIME DisconnectTime;
+ public FILETIME LastInputTime;
+ public FILETIME LoginTime;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1096)]
+ private byte[] Reserved3;
+ public FILETIME CurrentTime;
+ }
+
+ public enum WINSTATIONINFOCLASS
+ {
+ WinStationInformation = 8
+ }
+
+ public enum WTS_CONNECTSTATE_CLASS
+ {
+ Active,
+ Connected,
+ ConnectQuery,
+ Shadow,
+ Disconnected,
+ Idle,
+ Listen,
+ Reset,
+ Down,
+ Init
+ }
+
+ public enum WTS_INFO_CLASS
+ {
+ SessionId=4,
+ UserName,
+ SessionName,
+ DomainName,
+ ConnectState,
+ ClientBuildNumber,
+ ClientName,
+ ClientDirectory,
+ ClientProtocolType=16
+ }
+
+ private static IntPtr OpenServer(string Name)
+ {
+ IntPtr server = WTSOpenServer(Name);
+ return server;
+ }
+
+ private static void CloseServer(IntPtr ServerHandle)
+ {
+ WTSCloseServer(ServerHandle);
+ }
+
+ private static IList PtrToStructureList(IntPtr ppList, int count) where T : struct
+ {
+ List result = new List();
+ long pointer = ppList.ToInt64();
+ int sizeOf = Marshal.SizeOf(typeof(T));
+
+ for (int index = 0; index < count; index++)
+ {
+ T item = (T) Marshal.PtrToStructure(new IntPtr(pointer), typeof(T));
+ result.Add(item);
+ pointer += sizeOf;
+ }
+ return result;
+ }
+
+ public static DateTime? FileTimeToDateTime(FILETIME ft)
+ {
+ if (ft.dwHighDateTime == 0 && ft.dwLowDateTime == 0)
+ {
+ return null;
+ }
+ long hFT = (((long) ft.dwHighDateTime) << 32) + ft.dwLowDateTime;
+ return DateTime.FromFileTime(hFT);
+ }
+
+ public static WINSTATIONINFORMATIONW GetWinStationInformation(IntPtr server, int sessionId)
+ {
+ int retLen = 0;
+ WINSTATIONINFORMATIONW wsInfo = new WINSTATIONINFORMATIONW();
+ WinStationQueryInformation(server, sessionId, (int) WINSTATIONINFOCLASS.WinStationInformation, ref wsInfo, Marshal.SizeOf(typeof(WINSTATIONINFORMATIONW)), ref retLen);
+ return wsInfo;
+ }
+
+ public static TerminalSessionData[] ListSessions(string ServerName)
+ {
+ IntPtr server = IntPtr.Zero;
+ if (ServerName == "localhost" || ServerName == String.Empty)
+ {
+ ServerName = Environment.MachineName;
+ }
+
+ List results = new List();
+
+ try
+ {
+ server = OpenServer(ServerName);
+ IntPtr ppSessionInfo = IntPtr.Zero;
+ int count;
+ bool _isUserSession = false;
+ IList sessionsInfo;
+
+ if (WTSEnumerateSessions(server, 0, 1, out ppSessionInfo, out count) == 0)
+ {
+ throw new Win32Exception();
+ }
+
+ try
+ {
+ sessionsInfo = PtrToStructureList(ppSessionInfo, count);
+ }
+ finally
+ {
+ WTSFreeMemory(ppSessionInfo);
+ }
+
+ foreach (WTS_SESSION_INFO sessionInfo in sessionsInfo)
+ {
+ if (sessionInfo.SessionName != "Services" && sessionInfo.SessionName != "RDP-Tcp")
+ {
+ _isUserSession = true;
+ }
+ results.Add(new TerminalSessionData(sessionInfo.SessionId, sessionInfo.State.ToString(), sessionInfo.SessionName, _isUserSession));
+ _isUserSession = false;
+ }
+ }
+ finally
+ {
+ CloseServer(server);
+ }
+
+ TerminalSessionData[] returnData = results.ToArray();
+ return returnData;
+ }
+
+ public static TerminalSessionInfo GetSessionInfo(string ServerName, int SessionId)
+ {
+ IntPtr server = IntPtr.Zero;
+ IntPtr buffer = IntPtr.Zero;
+ int bytesReturned;
+ TerminalSessionInfo data = new TerminalSessionInfo();
+ bool _IsCurrentSessionId = false;
+ bool _IsConsoleSession = false;
+ bool _IsUserSession = false;
+ int currentSessionID = 0;
+ string _NTAccount = String.Empty;
+ if (ServerName == "localhost" || ServerName == String.Empty)
+ {
+ ServerName = Environment.MachineName;
+ }
+ if (ProcessIdToSessionId(GetCurrentProcessId(), ref currentSessionID) == false)
+ {
+ currentSessionID = -1;
+ }
+
+ // Get all members of the local administrators group
+ bool _IsLocalAdminCheckSuccess = false;
+ List localAdminGroupSidsList = new List();
+ try
+ {
+ DirectoryEntry localMachine = new DirectoryEntry("WinNT://" + ServerName + ",Computer");
+ string localAdminGroupName = new SecurityIdentifier("S-1-5-32-544").Translate(typeof(NTAccount)).Value.Split('\\')[1];
+ DirectoryEntry admGroup = localMachine.Children.Find(localAdminGroupName, "group");
+ object members = admGroup.Invoke("members", null);
+ string validSidPattern = @"^S-\d-\d+-(\d+-){1,14}\d+$";
+ foreach (object groupMember in (IEnumerable)members)
+ {
+ DirectoryEntry member = new DirectoryEntry(groupMember);
+ if (member.Name != String.Empty)
+ {
+ if (Regex.IsMatch(member.Name, validSidPattern))
+ {
+ localAdminGroupSidsList.Add(member.Name);
+ }
+ else
+ {
+ localAdminGroupSidsList.Add((new NTAccount(member.Name)).Translate(typeof(SecurityIdentifier)).Value);
+ }
+ }
+ }
+ _IsLocalAdminCheckSuccess = true;
+ }
+ catch { }
+
+ try
+ {
+ server = OpenServer(ServerName);
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.ClientBuildNumber, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ int lData = Marshal.ReadInt32(buffer);
+ data.ClientBuildNumber = lData;
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.ClientDirectory, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ string strData = Marshal.PtrToStringAnsi(buffer);
+ data.ClientDirectory = strData;
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.ClientName, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ strData = Marshal.PtrToStringAnsi(buffer);
+ data.ClientName = strData;
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.ClientProtocolType, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ Int16 intData = Marshal.ReadInt16(buffer);
+ if (intData == 2)
+ {
+ strData = "RDP";
+ data.IsRdpSession = true;
+ }
+ else
+ {
+ strData = "";
+ data.IsRdpSession = false;
+ }
+ data.ClientProtocolType = strData;
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.ConnectState, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ lData = Marshal.ReadInt32(buffer);
+ data.ConnectState = ((WTS_CONNECTSTATE_CLASS) lData).ToString();
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.SessionId, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ lData = Marshal.ReadInt32(buffer);
+ data.SessionId = lData;
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.DomainName, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ strData = Marshal.PtrToStringAnsi(buffer).ToUpper();
+ data.DomainName = strData;
+ if (strData != String.Empty)
+ {
+ _NTAccount = strData;
+ }
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.UserName, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ strData = Marshal.PtrToStringAnsi(buffer);
+ data.UserName = strData;
+ if (strData != String.Empty)
+ {
+ data.NTAccount = _NTAccount + "\\" + strData;
+ string _Sid = (new NTAccount(_NTAccount + "\\" + strData)).Translate(typeof(SecurityIdentifier)).Value;
+ data.SID = _Sid;
+ if (_IsLocalAdminCheckSuccess == true)
+ {
+ foreach (string localAdminGroupSid in localAdminGroupSidsList)
+ {
+ if (localAdminGroupSid == _Sid)
+ {
+ data.IsLocalAdmin = true;
+ break;
+ }
+ else
+ {
+ data.IsLocalAdmin = false;
+ }
+ }
+ }
+ }
+
+ if (WTSQuerySessionInformation(server, SessionId, WTS_INFO_CLASS.SessionName, out buffer, out bytesReturned) == false)
+ {
+ return data;
+ }
+ strData = Marshal.PtrToStringAnsi(buffer);
+ data.SessionName = strData;
+ if (strData != "Services" && strData != "RDP-Tcp" && data.UserName != String.Empty)
+ {
+ _IsUserSession = true;
+ }
+ data.IsUserSession = _IsUserSession;
+ if (strData == "Console")
+ {
+ _IsConsoleSession = true;
+ }
+ data.IsConsoleSession = _IsConsoleSession;
+
+ WINSTATIONINFORMATIONW wsInfo = GetWinStationInformation(server, SessionId);
+ DateTime? _loginTime = FileTimeToDateTime(wsInfo.LoginTime);
+ DateTime? _lastInputTime = FileTimeToDateTime(wsInfo.LastInputTime);
+ DateTime? _disconnectTime = FileTimeToDateTime(wsInfo.DisconnectTime);
+ DateTime? _currentTime = FileTimeToDateTime(wsInfo.CurrentTime);
+ TimeSpan? _idleTime = (_currentTime != null && _lastInputTime != null) ? _currentTime.Value - _lastInputTime.Value : TimeSpan.Zero;
+ data.LogonTime = _loginTime;
+ data.IdleTime = _idleTime;
+ data.DisconnectTime = _disconnectTime;
+
+ if (currentSessionID == SessionId)
+ {
+ _IsCurrentSessionId = true;
+ }
+ data.IsCurrentSession = _IsCurrentSessionId;
+ }
+ finally
+ {
+ WTSFreeMemory(buffer);
+ buffer = IntPtr.Zero;
+ CloseServer(server);
+ }
+ return data;
+ }
+
+ public static TerminalSessionInfo[] GetUserSessionInfo(string ServerName)
+ {
+ if (ServerName == "localhost" || ServerName == String.Empty)
+ {
+ ServerName = Environment.MachineName;
+ }
+
+ // Find and get detailed information for all user sessions
+ // Also determine the active user session. If a console user exists, then that will be the active user session.
+ // If no console user exists but users are logged in, such as on terminal servers, then select the first logged-in non-console user that is either 'Active' or 'Connected' as the active user.
+ TerminalSessionData[] sessions = ListSessions(ServerName);
+ TerminalSessionInfo sessionInfo = new TerminalSessionInfo();
+ List userSessionsInfo = new List();
+ string firstActiveUserNTAccount = String.Empty;
+ bool IsActiveUserSessionSet = false;
+ foreach (TerminalSessionData session in sessions)
+ {
+ if (session.IsUserSession == true)
+ {
+ sessionInfo = GetSessionInfo(ServerName, session.SessionId);
+ if (sessionInfo.IsUserSession == true)
+ {
+ if ((firstActiveUserNTAccount == String.Empty) && (sessionInfo.ConnectState == "Active" || sessionInfo.ConnectState == "Connected"))
+ {
+ firstActiveUserNTAccount = sessionInfo.NTAccount;
+ }
+
+ if (sessionInfo.IsConsoleSession == true)
+ {
+ sessionInfo.IsActiveUserSession = true;
+ IsActiveUserSessionSet = true;
+ }
+ else
+ {
+ sessionInfo.IsActiveUserSession = false;
+ }
+
+ userSessionsInfo.Add(sessionInfo);
+ }
+ }
+ }
+
+ TerminalSessionInfo[] userSessions = userSessionsInfo.ToArray();
+ if (IsActiveUserSessionSet == false)
+ {
+ foreach (TerminalSessionInfo userSession in userSessions)
+ {
+ if (userSession.NTAccount == firstActiveUserNTAccount)
+ {
+ userSession.IsActiveUserSession = true;
+ break;
+ }
+ }
+ }
+
+ return userSessions;
+ }
+ }
+}
diff --git a/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.ps1 b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.ps1
new file mode 100644
index 0000000..2979011
--- /dev/null
+++ b/Calibry/5.0/PS_Deployment/AppDeployToolkit/AppDeployToolkitMain.ps1
@@ -0,0 +1,11604 @@
+<#
+.SYNOPSIS
+ This script contains the functions and logic engine for the Deploy-Application.ps1 script.
+ # LICENSE #
+ PowerShell App Deployment Toolkit - Provides a set of functions to perform common application deployment tasks on Windows.
+ Copyright (C) 2017 - Sean Lillis, Dan Cunningham, Muhammad Mashwani, Aman Motazedian.
+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see .
+.DESCRIPTION
+ The script can be called directly to dot-source the toolkit functions for testing, but it is usually called by the Deploy-Application.ps1 script.
+ The script can usually be updated to the latest version without impacting your per-application Deploy-Application scripts.
+ Please check release notes before upgrading.
+.PARAMETER CleanupBlockedApps
+ Clean up the blocked applications.
+ This parameter is passed to the script when it is called externally, e.g. from a scheduled task or asynchronously.
+.PARAMETER ShowBlockedAppDialog
+ Display a dialog box showing that the application execution is blocked.
+ This parameter is passed to the script when it is called externally, e.g. from a scheduled task or asynchronously.
+.PARAMETER ReferredInstallName
+ Name of the referring application that invoked the script externally.
+ This parameter is passed to the script when it is called externally, e.g. from a scheduled task or asynchronously.
+.PARAMETER ReferredInstallTitle
+ Title of the referring application that invoked the script externally.
+ This parameter is passed to the script when it is called externally, e.g. from a scheduled task or asynchronously.
+.PARAMETER ReferredLogname
+ Logfile name of the referring application that invoked the script externally.
+ This parameter is passed to the script when it is called externally, e.g. from a scheduled task or asynchronously.
+.PARAMETER AsyncToolkitLaunch
+ This parameter is passed to the script when it is being called externally, e.g. from a scheduled task or asynchronously.
+.NOTES
+ The other parameters specified for this script that are not documented in this help section are for use only by functions in this script that call themselves by running this script again asynchronously.
+.LINK
+ http://psappdeploytoolkit.com
+#>
+[CmdletBinding()]
+Param (
+ ## Script Parameters: These parameters are passed to the script when it is called externally from a scheduled task or because of an Image File Execution Options registry setting
+ [switch]$ShowInstallationPrompt = $false,
+ [switch]$ShowInstallationRestartPrompt = $false,
+ [switch]$CleanupBlockedApps = $false,
+ [switch]$ShowBlockedAppDialog = $false,
+ [switch]$DisableLogging = $false,
+ [string]$ReferredInstallName = '',
+ [string]$ReferredInstallTitle = '',
+ [string]$ReferredLogName = '',
+ [string]$Title = '',
+ [string]$Message = '',
+ [string]$MessageAlignment = '',
+ [string]$ButtonRightText = '',
+ [string]$ButtonLeftText = '',
+ [string]$ButtonMiddleText = '',
+ [string]$Icon = '',
+ [string]$Timeout = '',
+ [switch]$ExitOnTimeout = $false,
+ [boolean]$MinimizeWindows = $false,
+ [switch]$PersistPrompt = $false,
+ [int32]$CountdownSeconds,
+ [int32]$CountdownNoHideSeconds,
+ [switch]$NoCountdown = $false,
+ [switch]$AsyncToolkitLaunch = $false
+)
+
+##*=============================================
+##* VARIABLE DECLARATION
+##*=============================================
+#region VariableDeclaration
+
+## Variables: Toolkit Name
+[string]$appDeployToolkitName = 'PSAppDeployToolkit'
+[string]$appDeployMainScriptFriendlyName = 'App Deploy Toolkit Main'
+
+## Variables: Script Info
+[version]$appDeployMainScriptVersion = [version]'3.8.3'
+[version]$appDeployMainScriptMinimumConfigVersion = [version]'3.8.3'
+[string]$appDeployMainScriptDate = '30/09/2020'
+[hashtable]$appDeployMainScriptParameters = $PSBoundParameters
+
+## Variables: Datetime and Culture
+[datetime]$currentDateTime = Get-Date
+[string]$currentTime = Get-Date -Date $currentDateTime -UFormat '%T'
+[string]$currentDate = Get-Date -Date $currentDateTime -UFormat '%d-%m-%Y'
+[timespan]$currentTimeZoneBias = [timezone]::CurrentTimeZone.GetUtcOffset([datetime]::Now)
+[Globalization.CultureInfo]$culture = Get-Culture
+[string]$currentLanguage = $culture.TwoLetterISOLanguageName.ToUpper()
+[Globalization.CultureInfo]$uiculture = Get-UICulture
+[string]$currentUILanguage = $uiculture.TwoLetterISOLanguageName.ToUpper()
+
+## Variables: Environment Variables
+[psobject]$envHost = $Host
+[psobject]$envShellFolders = Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -ErrorAction 'SilentlyContinue'
+[string]$envAllUsersProfile = $env:ALLUSERSPROFILE
+[string]$envAppData = [Environment]::GetFolderPath('ApplicationData')
+[string]$envArchitecture = $env:PROCESSOR_ARCHITECTURE
+[string]$envCommonDesktop = $envShellFolders | Select-Object -ExpandProperty 'Common Desktop' -ErrorAction 'SilentlyContinue'
+[string]$envCommonDocuments = $envShellFolders | Select-Object -ExpandProperty 'Common Documents' -ErrorAction 'SilentlyContinue'
+[string]$envCommonStartMenuPrograms = $envShellFolders | Select-Object -ExpandProperty 'Common Programs' -ErrorAction 'SilentlyContinue'
+[string]$envCommonStartMenu = $envShellFolders | Select-Object -ExpandProperty 'Common Start Menu' -ErrorAction 'SilentlyContinue'
+[string]$envCommonStartUp = $envShellFolders | Select-Object -ExpandProperty 'Common Startup' -ErrorAction 'SilentlyContinue'
+[string]$envCommonTemplates = $envShellFolders | Select-Object -ExpandProperty 'Common Templates' -ErrorAction 'SilentlyContinue'
+[string]$envComputerName = [Environment]::MachineName.ToUpper()
+[string]$envHomeDrive = $env:HOMEDRIVE
+[string]$envHomePath = $env:HOMEPATH
+[string]$envHomeShare = $env:HOMESHARE
+[string]$envLocalAppData = [Environment]::GetFolderPath('LocalApplicationData')
+[string[]]$envLogicalDrives = [Environment]::GetLogicalDrives()
+[string]$envProgramData = [Environment]::GetFolderPath('CommonApplicationData')
+[string]$envPublic = $env:PUBLIC
+[string]$envSystemDrive = $env:SYSTEMDRIVE
+[string]$envSystemRoot = $env:SYSTEMROOT
+[string]$envTemp = [IO.Path]::GetTempPath()
+[string]$envUserCookies = [Environment]::GetFolderPath('Cookies')
+[string]$envUserDesktop = [Environment]::GetFolderPath('DesktopDirectory')
+[string]$envUserFavorites = [Environment]::GetFolderPath('Favorites')
+[string]$envUserInternetCache = [Environment]::GetFolderPath('InternetCache')
+[string]$envUserInternetHistory = [Environment]::GetFolderPath('History')
+[string]$envUserMyDocuments = [Environment]::GetFolderPath('MyDocuments')
+[string]$envUserName = [Environment]::UserName
+[string]$envUserPictures = [Environment]::GetFolderPath('MyPictures')
+[string]$envUserProfile = $env:USERPROFILE
+[string]$envUserSendTo = [Environment]::GetFolderPath('SendTo')
+[string]$envUserStartMenu = [Environment]::GetFolderPath('StartMenu')
+[string]$envUserStartMenuPrograms = [Environment]::GetFolderPath('Programs')
+[string]$envUserStartUp = [Environment]::GetFolderPath('StartUp')
+[string]$envUserTemplates = [Environment]::GetFolderPath('Templates')
+[string]$envSystem32Directory = [Environment]::SystemDirectory
+[string]$envWinDir = $env:WINDIR
+
+## Variables: Domain Membership
+[boolean]$IsMachinePartOfDomain = (Get-WmiObject -Class 'Win32_ComputerSystem' -ErrorAction 'SilentlyContinue').PartOfDomain
+[string]$envMachineWorkgroup = ''
+[string]$envMachineADDomain = ''
+[string]$envLogonServer = ''
+[string]$MachineDomainController = ''
+[string]$envComputerNameFQDN = $envComputerName
+If ($IsMachinePartOfDomain) {
+ [string]$envMachineADDomain = (Get-WmiObject -Class 'Win32_ComputerSystem' -ErrorAction 'SilentlyContinue').Domain | Where-Object { $_ } | ForEach-Object { $_.ToLower() }
+ try {
+ $envComputerNameFQDN = ([Net.Dns]::GetHostEntry('localhost')).HostName
+ }
+ catch {
+ # Function GetHostEntry failed, but we can construct the FQDN in another way
+ $envComputerNameFQDN = $envComputerNameFQDN + "." + $envMachineADDomain
+ }
+
+ Try {
+ [string]$envLogonServer = $env:LOGONSERVER | Where-Object { (($_) -and (-not $_.Contains('\\MicrosoftAccount'))) } | ForEach-Object { $_.TrimStart('\') } | ForEach-Object { ([Net.Dns]::GetHostEntry($_)).HostName }
+ # If running in system context, fall back on the logonserver value stored in the registry
+ If (-not $envLogonServer) { [string]$envLogonServer = Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\History' -ErrorAction 'SilentlyContinue' | Select-Object -ExpandProperty 'DCName' -ErrorAction 'SilentlyContinue' }
+ }
+ Catch {
+ # If GetHostEntry fails, just use the registry value
+ [string]$envLogonServer = Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\History' -ErrorAction 'SilentlyContinue' | Select-Object -ExpandProperty 'DCName' -ErrorAction 'SilentlyContinue'
+ }
+
+ try {
+ [string]$MachineDomainController = [DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().FindDomainController().Name
+ }
+ catch { }
+}
+Else {
+ [string]$envMachineWorkgroup = (Get-WmiObject -Class 'Win32_ComputerSystem' -ErrorAction 'SilentlyContinue').Domain | Where-Object { $_ } | ForEach-Object { $_.ToUpper() }
+}
+[string]$envMachineDNSDomain = [Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties().DomainName | Where-Object { $_ } | ForEach-Object { $_.ToLower() }
+[string]$envUserDNSDomain = $env:USERDNSDOMAIN | Where-Object { $_ } | ForEach-Object { $_.ToLower() }
+Try {
+ [string]$envUserDomain = [Environment]::UserDomainName.ToUpper()
+}
+Catch { }
+
+## Variables: Operating System
+[psobject]$envOS = Get-WmiObject -Class 'Win32_OperatingSystem' -ErrorAction 'SilentlyContinue'
+[string]$envOSName = $envOS.Caption.Trim()
+[string]$envOSServicePack = $envOS.CSDVersion
+[version]$envOSVersion = $envOS.Version
+[string]$envOSVersionMajor = $envOSVersion.Major
+[string]$envOSVersionMinor = $envOSVersion.Minor
+[string]$envOSVersionBuild = $envOSVersion.Build
+If ((Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -ErrorAction 'SilentlyContinue').PSObject.Properties.Name -contains 'UBR') {
+ [string]$envOSVersionRevision = (Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'UBR' -ErrorAction 'SilentlyContinue').UBR
+}
+ElseIf ((Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -ErrorAction 'SilentlyContinue').PSObject.Properties.Name -contains 'BuildLabEx') {
+ [string]$envOSVersionRevision = ,((Get-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'BuildLabEx' -ErrorAction 'SilentlyContinue').BuildLabEx -split '\.') | ForEach-Object { $_[1] }
+}
+If ($envOSVersionRevision -notmatch '^[\d\.]+$') { $envOSVersionRevision = '' }
+If ($envOSVersionRevision) { [string]$envOSVersion = "$($envOSVersion.ToString()).$envOSVersionRevision" } Else { [string]$envOSVersion = "$($envOSVersion.ToString())" }
+# Get the operating system type
+[int32]$envOSProductType = $envOS.ProductType
+[boolean]$IsServerOS = [boolean]($envOSProductType -eq 3)
+[boolean]$IsDomainControllerOS = [boolean]($envOSProductType -eq 2)
+[boolean]$IsWorkStationOS = [boolean]($envOSProductType -eq 1)
+Switch ($envOSProductType) {
+ 3 { [string]$envOSProductTypeName = 'Server' }
+ 2 { [string]$envOSProductTypeName = 'Domain Controller' }
+ 1 { [string]$envOSProductTypeName = 'Workstation' }
+ Default { [string]$envOSProductTypeName = 'Unknown' }
+}
+# Get the OS Architecture
+[boolean]$Is64Bit = [boolean]((Get-WmiObject -Class 'Win32_Processor' -ErrorAction 'SilentlyContinue' | Where-Object { $_.DeviceID -eq 'CPU0' } | Select-Object -ExpandProperty 'AddressWidth') -eq 64)
+If ($Is64Bit) { [string]$envOSArchitecture = '64-bit' } Else { [string]$envOSArchitecture = '32-bit' }
+
+## Variables: Current Process Architecture
+[boolean]$Is64BitProcess = [boolean]([IntPtr]::Size -eq 8)
+If ($Is64BitProcess) { [string]$psArchitecture = 'x64' } Else { [string]$psArchitecture = 'x86' }
+
+## Variables: Get Normalized ProgramFiles and CommonProgramFiles Paths
+[string]$envProgramFiles = ''
+[string]$envProgramFilesX86 = ''
+[string]$envCommonProgramFiles = ''
+[string]$envCommonProgramFilesX86 = ''
+If ($Is64Bit) {
+ If ($Is64BitProcess) {
+ [string]$envProgramFiles = [Environment]::GetFolderPath('ProgramFiles')
+ [string]$envCommonProgramFiles = [Environment]::GetFolderPath('CommonProgramFiles')
+ }
+ Else {
+ [string]$envProgramFiles = [Environment]::GetEnvironmentVariable('ProgramW6432')
+ [string]$envCommonProgramFiles = [Environment]::GetEnvironmentVariable('CommonProgramW6432')
+ }
+ ## Powershell 2 doesn't support X86 folders so need to use variables instead
+ try {
+ [string]$envProgramFilesX86 = [Environment]::GetFolderPath('ProgramFilesX86')
+ [string]$envCommonProgramFilesX86 = [Environment]::GetFolderPath('CommonProgramFilesX86')
+ }
+ catch {
+ [string]$envProgramFilesX86 = [Environment]::GetEnvironmentVariable('ProgramFiles(x86)')
+ [string]$envCommonProgramFilesX86 = [Environment]::GetEnvironmentVariable('CommonProgramFiles(x86)')
+ }
+}
+Else {
+ [string]$envProgramFiles = [Environment]::GetFolderPath('ProgramFiles')
+ [string]$envProgramFilesX86 = $envProgramFiles
+ [string]$envCommonProgramFiles = [Environment]::GetFolderPath('CommonProgramFiles')
+ [string]$envCommonProgramFilesX86 = $envCommonProgramFiles
+}
+
+## Variables: Hardware
+[int32]$envSystemRAM = Get-WMIObject -Class Win32_PhysicalMemory -ComputerName $env:COMPUTERNAME -ErrorAction 'SilentlyContinue' | Measure-Object -Property Capacity -Sum -ErrorAction SilentlyContinue | ForEach-Object {[Math]::Round(($_.sum / 1GB),2)}
+
+## Variables: PowerShell And CLR (.NET) Versions
+[hashtable]$envPSVersionTable = $PSVersionTable
+# PowerShell Version
+[version]$envPSVersion = $envPSVersionTable.PSVersion
+[string]$envPSVersionMajor = $envPSVersion.Major
+[string]$envPSVersionMinor = $envPSVersion.Minor
+[string]$envPSVersionBuild = $envPSVersion.Build
+[string]$envPSVersionRevision = $envPSVersion.Revision
+[string]$envPSVersion = $envPSVersion.ToString()
+# CLR (.NET) Version used by PowerShell
+[version]$envCLRVersion = $envPSVersionTable.CLRVersion
+[string]$envCLRVersionMajor = $envCLRVersion.Major
+[string]$envCLRVersionMinor = $envCLRVersion.Minor
+[string]$envCLRVersionBuild = $envCLRVersion.Build
+[string]$envCLRVersionRevision = $envCLRVersion.Revision
+[string]$envCLRVersion = $envCLRVersion.ToString()
+
+## Variables: Permissions/Accounts
+[Security.Principal.WindowsIdentity]$CurrentProcessToken = [Security.Principal.WindowsIdentity]::GetCurrent()
+[Security.Principal.SecurityIdentifier]$CurrentProcessSID = $CurrentProcessToken.User
+[string]$ProcessNTAccount = $CurrentProcessToken.Name
+[string]$ProcessNTAccountSID = $CurrentProcessSID.Value
+[boolean]$IsAdmin = [boolean]($CurrentProcessToken.Groups -contains [Security.Principal.SecurityIdentifier]'S-1-5-32-544')
+[boolean]$IsLocalSystemAccount = $CurrentProcessSID.IsWellKnown([Security.Principal.WellKnownSidType]'LocalSystemSid')
+[boolean]$IsLocalServiceAccount = $CurrentProcessSID.IsWellKnown([Security.Principal.WellKnownSidType]'LocalServiceSid')
+[boolean]$IsNetworkServiceAccount = $CurrentProcessSID.IsWellKnown([Security.Principal.WellKnownSidType]'NetworkServiceSid')
+[boolean]$IsServiceAccount = [boolean]($CurrentProcessToken.Groups -contains [Security.Principal.SecurityIdentifier]'S-1-5-6')
+[boolean]$IsProcessUserInteractive = [Environment]::UserInteractive
+[string]$LocalSystemNTAccount = (New-Object -TypeName 'System.Security.Principal.SecurityIdentifier' -ArgumentList ([Security.Principal.WellKnownSidType]::'LocalSystemSid', $null)).Translate([Security.Principal.NTAccount]).Value
+# Check if script is running in session zero
+If ($IsLocalSystemAccount -or $IsLocalServiceAccount -or $IsNetworkServiceAccount -or $IsServiceAccount) { $SessionZero = $true } Else { $SessionZero = $false }
+
+## Variables: Script Name and Script Paths
+[string]$scriptPath = $MyInvocation.MyCommand.Definition
+[string]$scriptName = [IO.Path]::GetFileNameWithoutExtension($scriptPath)
+[string]$scriptFileName = Split-Path -Path $scriptPath -Leaf
+[string]$scriptRoot = Split-Path -Path $scriptPath -Parent
+[string]$invokingScript = (Get-Variable -Name 'MyInvocation').Value.ScriptName
+# Get the invoking script directory
+If ($invokingScript) {
+ # If this script was invoked by another script
+ [string]$scriptParentPath = Split-Path -Path $invokingScript -Parent
+}
+Else {
+ # If this script was not invoked by another script, fall back to the directory one level above this script
+ [string]$scriptParentPath = (Get-Item -LiteralPath $scriptRoot).Parent.FullName
+}
+
+## Variables: App Deploy Script Dependency Files
+[string]$appDeployConfigFile = Join-Path -Path $scriptRoot -ChildPath 'AppDeployToolkitConfig.xml'
+[string]$appDeployCustomTypesSourceCode = Join-Path -Path $scriptRoot -ChildPath 'AppDeployToolkitMain.cs'
+If (-not (Test-Path -LiteralPath $appDeployConfigFile -PathType 'Leaf')) { Throw 'App Deploy XML configuration file not found.' }
+If (-not (Test-Path -LiteralPath $appDeployCustomTypesSourceCode -PathType 'Leaf')) { Throw 'App Deploy custom types source code file not found.' }
+
+# App Deploy Optional Extensions File
+[string]$appDeployToolkitDotSourceExtensions = 'AppDeployToolkitExtensions.ps1'
+
+## Import variables from XML configuration file
+[Xml.XmlDocument]$xmlConfigFile = Get-Content -LiteralPath $AppDeployConfigFile -Encoding UTF8
+[Xml.XmlElement]$xmlConfig = $xmlConfigFile.AppDeployToolkit_Config
+# Get Config File Details
+[Xml.XmlElement]$configConfigDetails = $xmlConfig.Config_File
+[string]$configConfigVersion = [version]$configConfigDetails.Config_Version
+[string]$configConfigDate = $configConfigDetails.Config_Date
+
+# Get Banner and Icon details
+[Xml.XmlElement]$xmlBannerIconOptions = $xmlConfig.BannerIcon_Options
+[string]$configBannerIconFileName = $xmlBannerIconOptions.Icon_Filename
+[string]$configBannerIconBannerName = $xmlBannerIconOptions.Banner_Filename
+[Int32]$appDeployLogoBannerMaxHeight = $xmlBannerIconOptions.Banner_MaxHeight
+
+[string]$appDeployLogoIcon = Join-Path -Path $scriptRoot -ChildPath $configBannerIconFileName
+[string]$appDeployLogoBanner = Join-Path -Path $scriptRoot -ChildPath $configBannerIconBannerName
+# Check that dependency files are present
+If (-not (Test-Path -LiteralPath $appDeployLogoIcon -PathType 'Leaf')) { Throw 'App Deploy logo icon file not found.' }
+If (-not (Test-Path -LiteralPath $appDeployLogoBanner -PathType 'Leaf')) { Throw 'App Deploy logo banner file not found.' }
+
+Add-Type -AssemblyName 'System.Drawing' -ErrorAction 'Stop'
+[System.Drawing.Bitmap]$appDeployLogoBannerObject = New-Object System.Drawing.Bitmap $appDeployLogoBanner
+[Int32]$appDeployLogoBannerBaseHeight = 50
+
+[Int32]$appDeployLogoBannerHeight = $appDeployLogoBannerObject.Height
+if ($appDeployLogoBannerHeight -gt $appDeployLogoBannerMaxHeight) {
+ $appDeployLogoBannerHeight = $appDeployLogoBannerMaxHeight
+}
+[Int32]$appDeployLogoBannerHeightDifference = $appDeployLogoBannerHeight - $appDeployLogoBannerBaseHeight
+
+# Get Toolkit Options
+[Xml.XmlElement]$xmlToolkitOptions = $xmlConfig.Toolkit_Options
+[boolean]$configToolkitRequireAdmin = [boolean]::Parse($xmlToolkitOptions.Toolkit_RequireAdmin)
+[string]$configToolkitTempPath = $ExecutionContext.InvokeCommand.ExpandString($xmlToolkitOptions.Toolkit_TempPath)
+[string]$configToolkitRegPath = $xmlToolkitOptions.Toolkit_RegPath
+[string]$configToolkitLogDir = $ExecutionContext.InvokeCommand.ExpandString($xmlToolkitOptions.Toolkit_LogPath)
+[boolean]$configToolkitCompressLogs = [boolean]::Parse($xmlToolkitOptions.Toolkit_CompressLogs)
+[string]$configToolkitLogStyle = $xmlToolkitOptions.Toolkit_LogStyle
+[double]$configToolkitLogMaxSize = $xmlToolkitOptions.Toolkit_LogMaxSize
+[boolean]$configToolkitLogWriteToHost = [boolean]::Parse($xmlToolkitOptions.Toolkit_LogWriteToHost)
+[boolean]$configToolkitLogDebugMessage = [boolean]::Parse($xmlToolkitOptions.Toolkit_LogDebugMessage)
+# Get MSI Options
+[Xml.XmlElement]$xmlConfigMSIOptions = $xmlConfig.MSI_Options
+[string]$configMSILoggingOptions = $xmlConfigMSIOptions.MSI_LoggingOptions
+[string]$configMSIInstallParams = $ExecutionContext.InvokeCommand.ExpandString($xmlConfigMSIOptions.MSI_InstallParams)
+[string]$configMSISilentParams = $ExecutionContext.InvokeCommand.ExpandString($xmlConfigMSIOptions.MSI_SilentParams)
+[string]$configMSIUninstallParams = $ExecutionContext.InvokeCommand.ExpandString($xmlConfigMSIOptions.MSI_UninstallParams)
+[string]$configMSILogDir = $ExecutionContext.InvokeCommand.ExpandString($xmlConfigMSIOptions.MSI_LogPath)
+[int32]$configMSIMutexWaitTime = $xmlConfigMSIOptions.MSI_MutexWaitTime
+# Change paths to user accessible ones if RequireAdmin is false
+If ($configToolkitRequireAdmin -eq $false){
+ If ($xmlToolkitOptions.Toolkit_TempPathNoAdminRights) {
+ [string]$configToolkitTempPath = $ExecutionContext.InvokeCommand.ExpandString($xmlToolkitOptions.Toolkit_TempPathNoAdminRights)
+ }
+ If ($xmlToolkitOptions.Toolkit_RegPathNoAdminRights) {
+ [string]$configToolkitRegPath = $xmlToolkitOptions.Toolkit_RegPathNoAdminRights
+ }
+ If ($xmlToolkitOptions.Toolkit_LogPathNoAdminRights) {
+ [string]$configToolkitLogDir = $ExecutionContext.InvokeCommand.ExpandString($xmlToolkitOptions.Toolkit_LogPathNoAdminRights)
+ }
+ If ($xmlConfigMSIOptions.MSI_LogPathNoAdminRights) {
+ [string]$configMSILogDir = $ExecutionContext.InvokeCommand.ExpandString($xmlConfigMSIOptions.MSI_LogPathNoAdminRights)
+ }
+}
+# Get UI Options
+[Xml.XmlElement]$xmlConfigUIOptions = $xmlConfig.UI_Options
+[string]$configInstallationUILanguageOverride = $xmlConfigUIOptions.InstallationUI_LanguageOverride
+[boolean]$configShowBalloonNotifications = [boolean]::Parse($xmlConfigUIOptions.ShowBalloonNotifications)
+[int32]$configInstallationUITimeout = $xmlConfigUIOptions.InstallationUI_Timeout
+[int32]$configInstallationUIExitCode = $xmlConfigUIOptions.InstallationUI_ExitCode
+[int32]$configInstallationDeferExitCode = $xmlConfigUIOptions.InstallationDefer_ExitCode
+[int32]$configInstallationPersistInterval = $xmlConfigUIOptions.InstallationPrompt_PersistInterval
+[int32]$configInstallationRestartPersistInterval = $xmlConfigUIOptions.InstallationRestartPrompt_PersistInterval
+[int32]$configInstallationPromptToSave = $xmlConfigUIOptions.InstallationPromptToSave_Timeout
+[boolean]$configInstallationWelcomePromptDynamicRunningProcessEvaluation = [boolean]::Parse($xmlConfigUIOptions.InstallationWelcomePrompt_DynamicRunningProcessEvaluation)
+[int32]$configInstallationWelcomePromptDynamicRunningProcessEvaluationInterval = $xmlConfigUIOptions.InstallationWelcomePrompt_DynamicRunningProcessEvaluationInterval
+# Define ScriptBlock for Loading Message UI Language Options (default for English if no localization found)
+[scriptblock]$xmlLoadLocalizedUIMessages = {
+ # If a user is logged on, then get primary UI language for logged on user (even if running in session 0)
+ If ($RunAsActiveUser) {
+ # Read language defined by Group Policy
+ If (-not $HKULanguages) {
+ [string[]]$HKULanguages = Get-RegistryKey -Key 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MUI\Settings' -Value 'PreferredUILanguages'
+ }
+ If (-not $HKULanguages) {
+ [string[]]$HKULanguages = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop' -Value 'PreferredUILanguages' -SID $RunAsActiveUser.SID
+ }
+ # Read language for Win Vista & higher machines
+ If (-not $HKULanguages) {
+ [string[]]$HKULanguages = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop' -Value 'PreferredUILanguages' -SID $RunAsActiveUser.SID
+ }
+ If (-not $HKULanguages) {
+ [string[]]$HKULanguages = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop\MuiCached' -Value 'MachinePreferredUILanguages' -SID $RunAsActiveUser.SID
+ }
+ If (-not $HKULanguages) {
+ [string[]]$HKULanguages = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\International' -Value 'LocaleName' -SID $RunAsActiveUser.SID
+ }
+ # Read language for Win XP machines
+ If (-not $HKULanguages) {
+ [string]$HKULocale = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\International' -Value 'Locale' -SID $RunAsActiveUser.SID
+ If ($HKULocale) {
+ [int32]$HKULocale = [Convert]::ToInt32('0x' + $HKULocale, 16)
+ [string[]]$HKULanguages = ([Globalization.CultureInfo]($HKULocale)).Name
+ }
+ }
+ If ($HKULanguages) {
+ [Globalization.CultureInfo]$PrimaryWindowsUILanguage = [Globalization.CultureInfo]($HKULanguages[0])
+ [string]$HKUPrimaryLanguageShort = $PrimaryWindowsUILanguage.TwoLetterISOLanguageName.ToUpper()
+
+ # If the detected language is Chinese, determine if it is simplified or traditional Chinese
+ If ($HKUPrimaryLanguageShort -eq 'ZH') {
+ If ($PrimaryWindowsUILanguage.EnglishName -match 'Simplified') {
+ [string]$HKUPrimaryLanguageShort = 'ZH-Hans'
+ }
+ If ($PrimaryWindowsUILanguage.EnglishName -match 'Traditional') {
+ [string]$HKUPrimaryLanguageShort = 'ZH-Hant'
+ }
+ }
+
+ # If the detected language is Portuguese, determine if it is Brazilian Portuguese
+ If ($HKUPrimaryLanguageShort -eq 'PT') {
+ If ($PrimaryWindowsUILanguage.ThreeLetterWindowsLanguageName -eq 'PTB') {
+ [string]$HKUPrimaryLanguageShort = 'PT-BR'
+ }
+ }
+ }
+ }
+
+ If ($HKUPrimaryLanguageShort) {
+ # Use the primary UI language of the logged in user
+ [string]$xmlUIMessageLanguage = "UI_Messages_$HKUPrimaryLanguageShort"
+ }
+ Else {
+ # Default to UI language of the account executing current process (even if it is the SYSTEM account)
+ [string]$xmlUIMessageLanguage = "UI_Messages_$currentLanguage"
+ }
+ # Default to English if the detected UI language is not available in the XMl config file
+ If (-not ($xmlConfig.$xmlUIMessageLanguage)) { [string]$xmlUIMessageLanguage = 'UI_Messages_EN' }
+ # Override the detected language if the override option was specified in the XML config file
+ If ($configInstallationUILanguageOverride) { [string]$xmlUIMessageLanguage = "UI_Messages_$configInstallationUILanguageOverride" }
+
+ [Xml.XmlElement]$xmlUIMessages = $xmlConfig.$xmlUIMessageLanguage
+ [string]$configDiskSpaceMessage = $xmlUIMessages.DiskSpace_Message
+ [string]$configBalloonTextStart = $xmlUIMessages.BalloonText_Start
+ [string]$configBalloonTextComplete = $xmlUIMessages.BalloonText_Complete
+ [string]$configBalloonTextRestartRequired = $xmlUIMessages.BalloonText_RestartRequired
+ [string]$configBalloonTextFastRetry = $xmlUIMessages.BalloonText_FastRetry
+ [string]$configBalloonTextError = $xmlUIMessages.BalloonText_Error
+ [string]$configProgressMessageInstall = $xmlUIMessages.Progress_MessageInstall
+ [string]$configProgressMessageUninstall = $xmlUIMessages.Progress_MessageUninstall
+ [string]$configProgressMessageRepair = $xmlUIMessages.Progress_MessageRepair
+ [string]$configClosePromptMessage = $xmlUIMessages.ClosePrompt_Message
+ [string]$configClosePromptButtonClose = $xmlUIMessages.ClosePrompt_ButtonClose
+ [string]$configClosePromptButtonDefer = $xmlUIMessages.ClosePrompt_ButtonDefer
+ [string]$configClosePromptButtonContinue = $xmlUIMessages.ClosePrompt_ButtonContinue
+ [string]$configClosePromptButtonContinueTooltip = $xmlUIMessages.ClosePrompt_ButtonContinueTooltip
+ [string]$configClosePromptCountdownMessage = $xmlUIMessages.ClosePrompt_CountdownMessage
+ [string]$configDeferPromptWelcomeMessage = $xmlUIMessages.DeferPrompt_WelcomeMessage
+ [string]$configDeferPromptExpiryMessage = $xmlUIMessages.DeferPrompt_ExpiryMessage
+ [string]$configDeferPromptWarningMessage = $xmlUIMessages.DeferPrompt_WarningMessage
+ [string]$configDeferPromptRemainingDeferrals = $xmlUIMessages.DeferPrompt_RemainingDeferrals
+ [string]$configDeferPromptDeadline = $xmlUIMessages.DeferPrompt_Deadline
+ [string]$configBlockExecutionMessage = $xmlUIMessages.BlockExecution_Message
+ [string]$configDeploymentTypeInstall = $xmlUIMessages.DeploymentType_Install
+ [string]$configDeploymentTypeUnInstall = $xmlUIMessages.DeploymentType_UnInstall
+ [string]$configDeploymentTypeRepair = $xmlUIMessages.DeploymentType_Repair
+ [string]$configRestartPromptTitle = $xmlUIMessages.RestartPrompt_Title
+ [string]$configRestartPromptMessage = $xmlUIMessages.RestartPrompt_Message
+ [string]$configRestartPromptMessageTime = $xmlUIMessages.RestartPrompt_MessageTime
+ [string]$configRestartPromptMessageRestart = $xmlUIMessages.RestartPrompt_MessageRestart
+ [string]$configRestartPromptTimeRemaining = $xmlUIMessages.RestartPrompt_TimeRemaining
+ [string]$configRestartPromptButtonRestartLater = $xmlUIMessages.RestartPrompt_ButtonRestartLater
+ [string]$configRestartPromptButtonRestartNow = $xmlUIMessages.RestartPrompt_ButtonRestartNow
+ [string]$configWelcomePromptCountdownMessage = $xmlUIMessages.WelcomePrompt_CountdownMessage
+ [string]$configWelcomePromptCustomMessage = $xmlUIMessages.WelcomePrompt_CustomMessage
+}
+
+## Variables: Script Directories
+[string]$dirFiles = Join-Path -Path $scriptParentPath -ChildPath 'Files'
+[string]$dirSupportFiles = Join-Path -Path $scriptParentPath -ChildPath 'SupportFiles'
+[string]$dirAppDeployTemp = Join-Path -Path $configToolkitTempPath -ChildPath $appDeployToolkitName
+
+## Set the deployment type to "Install" if it has not been specified
+If (-not $deploymentType) { [string]$deploymentType = 'Install' }
+
+## Variables: Executables
+[string]$exeWusa = "$envWinDir\System32\wusa.exe" # Installs Standalone Windows Updates
+[string]$exeMsiexec = "$envWinDir\System32\msiexec.exe" # Installs MSI Installers
+[string]$exeSchTasks = "$envWinDir\System32\schtasks.exe" # Manages Scheduled Tasks
+
+## Variables: RegEx Patterns
+[string]$MSIProductCodeRegExPattern = '^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$'
+
+## Variables: Invalid FileName Characters
+[char[]]$invalidFileNameChars = [IO.Path]::GetinvalidFileNameChars()
+
+## Variables: Registry Keys
+# Registry keys for native and WOW64 applications
+[string[]]$regKeyApplications = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall','Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
+If ($is64Bit) {
+ [string]$regKeyLotusNotes = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lotus\Notes'
+}
+Else {
+ [string]$regKeyLotusNotes = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Lotus\Notes'
+}
+[string]$regKeyAppExecution = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options'
+
+## COM Objects: Initialize
+[__comobject]$Shell = New-Object -ComObject 'WScript.Shell' -ErrorAction 'SilentlyContinue'
+[__comobject]$ShellApp = New-Object -ComObject 'Shell.Application' -ErrorAction 'SilentlyContinue'
+
+## Variables: Reset/Remove Variables
+[boolean]$msiRebootDetected = $false
+[boolean]$BlockExecution = $false
+[boolean]$installationStarted = $false
+[boolean]$runningTaskSequence = $false
+If (Test-Path -LiteralPath 'variable:welcomeTimer') { Remove-Variable -Name 'welcomeTimer' -Scope 'Script'}
+# Reset the deferral history
+If (Test-Path -LiteralPath 'variable:deferHistory') { Remove-Variable -Name 'deferHistory' }
+If (Test-Path -LiteralPath 'variable:deferTimes') { Remove-Variable -Name 'deferTimes' }
+If (Test-Path -LiteralPath 'variable:deferDays') { Remove-Variable -Name 'deferDays' }
+
+## Variables: System DPI Scale Factor
+[scriptblock]$GetDisplayScaleFactor = {
+ # If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
+ [boolean]$UserDisplayScaleFactor = $false
+ If ($RunAsActiveUser) {
+ [int32]$dpiPixels = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
+ If (-not ([string]$dpiPixels)) {
+ [int32]$dpiPixels = Get-RegistryKey -Key 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
+ }
+ [boolean]$UserDisplayScaleFactor = $true
+ }
+ If (-not ([string]$dpiPixels)) {
+ # This registry setting only exists if system scale factor has been changed at least once
+ [int32]$dpiPixels = Get-RegistryKey -Key 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI' -Value 'LogPixels'
+ [boolean]$UserDisplayScaleFactor = $false
+ }
+ Switch ($dpiPixels) {
+ 96 { [int32]$dpiScale = 100 }
+ 120 { [int32]$dpiScale = 125 }
+ 144 { [int32]$dpiScale = 150 }
+ 192 { [int32]$dpiScale = 200 }
+ Default { [int32]$dpiScale = 100 }
+ }
+}
+#endregion
+##*=============================================
+##* END VARIABLE DECLARATION
+##*=============================================
+
+##*=============================================
+##* FUNCTION LISTINGS
+##*=============================================
+#region FunctionListings
+
+#region Function Write-FunctionHeaderOrFooter
+Function Write-FunctionHeaderOrFooter {
+<#
+.SYNOPSIS
+ Write the function header or footer to the log upon first entering or exiting a function.
+.DESCRIPTION
+ Write the "Function Start" message, the bound parameters the function was invoked with, or the "Function End" message when entering or exiting a function.
+ Messages are debug messages so will only be logged if LogDebugMessage option is enabled in XML config file.
+.PARAMETER CmdletName
+ The name of the function this function is invoked from.
+.PARAMETER CmdletBoundParameters
+ The bound parameters of the function this function is invoked from.
+.PARAMETER Header
+ Write the function header.
+.PARAMETER Footer
+ Write the function footer.
+.EXAMPLE
+ Write-FunctionHeaderOrFooter -CmdletName ${CmdletName} -CmdletBoundParameters $PSBoundParameters -Header
+.EXAMPLE
+ Write-FunctionHeaderOrFooter -CmdletName ${CmdletName} -Footer
+.NOTES
+ This is an internal script function and should typically not be called directly.
+.LINK
+ http://psappdeploytoolkit.com
+#>
+ [CmdletBinding()]
+ Param (
+ [Parameter(Mandatory=$true)]
+ [ValidateNotNullorEmpty()]
+ [string]$CmdletName,
+ [Parameter(Mandatory=$true,ParameterSetName='Header')]
+ [AllowEmptyCollection()]
+ [hashtable]$CmdletBoundParameters,
+ [Parameter(Mandatory=$true,ParameterSetName='Header')]
+ [switch]$Header,
+ [Parameter(Mandatory=$true,ParameterSetName='Footer')]
+ [switch]$Footer
+ )
+
+ If ($Header) {
+ Write-Log -Message 'Function Start' -Source ${CmdletName} -DebugMessage
+
+ ## Get the parameters that the calling function was invoked with
+ [string]$CmdletBoundParameters = $CmdletBoundParameters | Format-Table -Property @{ Label = 'Parameter'; Expression = { "[-$($_.Key)]" } }, @{ Label = 'Value'; Expression = { $_.Value }; Alignment = 'Left' }, @{ Label = 'Type'; Expression = { $_.Value.GetType().Name }; Alignment = 'Left' } -AutoSize -Wrap | Out-String
+ If ($CmdletBoundParameters) {
+ Write-Log -Message "Function invoked with bound parameter(s): `n$CmdletBoundParameters" -Source ${CmdletName} -DebugMessage
+ }
+ Else {
+ Write-Log -Message 'Function invoked without any bound parameters.' -Source ${CmdletName} -DebugMessage
+ }
+ }
+ ElseIf ($Footer) {
+ Write-Log -Message 'Function End' -Source ${CmdletName} -DebugMessage
+ }
+}
+#endregion
+#region Function Execute-MSP
+Function Execute-MSP {
+<#
+.SYNOPSIS
+ Reads SummaryInfo targeted product codes in MSP file and determines if the MSP file applies to any installed products
+ If a valid installed product is found, triggers the Execute-MSI function to patch the installation. Uses default config MSI parameters.
+.PARAMETER Path
+ Path to the msp file
+.PARAMETER AddParameters
+ Additional parameters
+.EXAMPLE
+ Execute-MSP -Path 'Adobe_Reader_11.0.3_EN.msp'
+.NOTES
+.LINK
+ http://psappdeploytoolkit.com
+#>
+ [CmdletBinding()]
+ Param (
+ [Parameter(Mandatory=$true,HelpMessage='Please enter the path to the MSP file')]
+ [ValidateScript({('.msp' -contains [IO.Path]::GetExtension($_))})]
+ [Alias('FilePath')]
+ [string]$Path,
+ [Parameter(Mandatory=$false)]
+ [ValidateNotNullorEmpty()]
+ [string]$AddParameters
+ )
+
+ Begin {
+ ## Get the name of this function and write header
+ [string]${CmdletName} = $PSCmdlet.MyInvocation.MyCommand.Name
+ Write-FunctionHeaderOrFooter -CmdletName ${CmdletName} -CmdletBoundParameters $PSBoundParameters -Header
+ }
+ Process {
+ ## If the MSP is in the Files directory, set the full path to the MSP
+ If (Test-Path -LiteralPath (Join-Path -Path $dirFiles -ChildPath $path -ErrorAction 'SilentlyContinue') -PathType 'Leaf' -ErrorAction 'SilentlyContinue') {
+ [string]$mspFile = Join-Path -Path $dirFiles -ChildPath $path
+ }
+ ElseIf (Test-Path -LiteralPath $Path -ErrorAction 'SilentlyContinue') {
+ [string]$mspFile = (Get-Item -LiteralPath $Path).FullName
+ }
+ Else {
+ Write-Log -Message "Failed to find MSP file [$path]." -Severity 3 -Source ${CmdletName}
+ If (-not $ContinueOnError) {
+ Throw "Failed to find MSP file [$path]."
+ }
+ Continue
+ }
+ Write-Log -Message 'Checking MSP file for valid product codes' -Source ${CmdletName}
+
+ [boolean]$IsMSPNeeded = $false
+
+ $Installer = New-Object -com WindowsInstaller.Installer
+ $Database = $Installer.GetType().InvokeMember("OpenDatabase", "InvokeMethod", $Null, $Installer, $($mspFile,([int32]32)))
+ [__comobject]$SummaryInformation = Get-ObjectProperty -InputObject $Database -PropertyName 'SummaryInformation'
+ [hashtable]$SummaryInfoProperty = @{}
+ $all = (Get-ObjectProperty -InputObject $SummaryInformation -PropertyName 'Property' -ArgumentList @(7)).Split(";")
+ Foreach($FormattedProductCode in $all) {
+ [psobject]$MSIInstalled = Get-InstalledApplication -ProductCode $FormattedProductCode
+ If ($MSIInstalled) {[boolean]$IsMSPNeeded = $true }
+ }
+ Try { $null = [Runtime.Interopservices.Marshal]::ReleaseComObject($SummaryInformation) } Catch { }
+ Try { $null = [Runtime.Interopservices.Marshal]::ReleaseComObject($DataBase) } Catch { }
+ Try { $null = [Runtime.Interopservices.Marshal]::ReleaseComObject($Installer) } Catch { }
+ If ($IsMSPNeeded) {
+ If ($AddParameters) {
+ Execute-MSI -Action Patch -Path $Path -AddParameters $AddParameters
+ }
+ Else {
+ Execute-MSI -Action Patch -Path $Path
+ }
+ }
+ }
+}
+#endregion
+
+#region Function Write-Log
+Function Write-Log {
+<#
+.SYNOPSIS
+ Write messages to a log file in CMTrace.exe compatible format or Legacy text file format.
+.DESCRIPTION
+ Write messages to a log file in CMTrace.exe compatible format or Legacy text file format and optionally display in the console.
+.PARAMETER Message
+ The message to write to the log file or output to the console.
+.PARAMETER Severity
+ Defines message type. When writing to console or CMTrace.exe log format, it allows highlighting of message type.
+ Options: 1 = Information (default), 2 = Warning (highlighted in yellow), 3 = Error (highlighted in red)
+.PARAMETER Source
+ The source of the message being logged.
+.PARAMETER ScriptSection
+ The heading for the portion of the script that is being executed. Default is: $script:installPhase.
+.PARAMETER LogType
+ Choose whether to write a CMTrace.exe compatible log file or a Legacy text log file.
+.PARAMETER LogFileDirectory
+ Set the directory where the log file will be saved.
+.PARAMETER LogFileName
+ Set the name of the log file.
+.PARAMETER MaxLogFileSizeMB
+ Maximum file size limit for log file in megabytes (MB). Default is 10 MB.
+.PARAMETER WriteHost
+ Write the log message to the console.
+.PARAMETER ContinueOnError
+ Suppress writing log message to console on failure to write message to log file. Default is: $true.
+.PARAMETER PassThru
+ Return the message that was passed to the function
+.PARAMETER DebugMessage
+ Specifies that the message is a debug message. Debug messages only get logged if -LogDebugMessage is set to $true.
+.PARAMETER LogDebugMessage
+ Debug messages only get logged if this parameter is set to $true in the config XML file.
+.EXAMPLE
+ Write-Log -Message "Installing patch MS15-031" -Source 'Add-Patch' -LogType 'CMTrace'
+.EXAMPLE
+ Write-Log -Message "Script is running on Windows 8" -Source 'Test-ValidOS' -LogType 'Legacy'
+.NOTES
+.LINK
+ http://psappdeploytoolkit.com
+#>
+ [CmdletBinding()]
+ Param (
+ [Parameter(Mandatory=$true,Position=0,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
+ [AllowEmptyCollection()]
+ [Alias('Text')]
+ [string[]]$Message,
+ [Parameter(Mandatory=$false,Position=1)]
+ [ValidateRange(1,3)]
+ [int16]$Severity = 1,
+ [Parameter(Mandatory=$false,Position=2)]
+ [ValidateNotNull()]
+ [string]$Source = $([string]$parentFunctionName = [IO.Path]::GetFileNameWithoutExtension((Get-Variable -Name MyInvocation -Scope 1 -ErrorAction SilentlyContinue).Value.MyCommand.Name); If($parentFunctionName) {$parentFunctionName} Else {'Unknown'}),
+ [Parameter(Mandatory=$false,Position=3)]
+ [ValidateNotNullorEmpty()]
+ [string]$ScriptSection = $script:installPhase,
+ [Parameter(Mandatory=$false,Position=4)]
+ [ValidateSet('CMTrace','Legacy')]
+ [string]$LogType = $configToolkitLogStyle,
+ [Parameter(Mandatory=$false,Position=5)]
+ [ValidateNotNullorEmpty()]
+ [string]$LogFileDirectory = $(If ($configToolkitCompressLogs) { $logTempFolder } Else { $configToolkitLogDir }),
+ [Parameter(Mandatory=$false,Position=6)]
+ [ValidateNotNullorEmpty()]
+ [string]$LogFileName = $logName,
+ [Parameter(Mandatory=$false,Position=7)]
+ [ValidateNotNullorEmpty()]
+ [decimal]$MaxLogFileSizeMB = $configToolkitLogMaxSize,
+ [Parameter(Mandatory=$false,Position=8)]
+ [ValidateNotNullorEmpty()]
+ [boolean]$WriteHost = $configToolkitLogWriteToHost,
+ [Parameter(Mandatory=$false,Position=9)]
+ [ValidateNotNullorEmpty()]
+ [boolean]$ContinueOnError = $true,
+ [Parameter(Mandatory=$false,Position=10)]
+ [switch]$PassThru = $false,
+ [Parameter(Mandatory=$false,Position=11)]
+ [switch]$DebugMessage = $false,
+ [Parameter(Mandatory=$false,Position=12)]
+ [boolean]$LogDebugMessage = $configToolkitLogDebugMessage
+ )
+
+ Begin {
+ ## Get the name of this function
+ [string]${CmdletName} = $PSCmdlet.MyInvocation.MyCommand.Name
+
+ ## Logging Variables
+ # Log file date/time
+ [string]$LogTime = (Get-Date -Format 'HH\:mm\:ss.fff').ToString()
+ [string]$LogDate = (Get-Date -Format 'MM-dd-yyyy').ToString()
+ If (-not (Test-Path -LiteralPath 'variable:LogTimeZoneBias')) { [int32]$script:LogTimeZoneBias = [timezone]::CurrentTimeZone.GetUtcOffset([datetime]::Now).TotalMinutes }
+ [string]$LogTimePlusBias = $LogTime + $script:LogTimeZoneBias
+ # Initialize variables
+ [boolean]$ExitLoggingFunction = $false
+ If (-not (Test-Path -LiteralPath 'variable:DisableLogging')) { $DisableLogging = $false }
+ # Check if the script section is defined
+ [boolean]$ScriptSectionDefined = [boolean](-not [string]::IsNullOrEmpty($ScriptSection))
+ # Get the file name of the source script
+ Try {
+ If ($script:MyInvocation.Value.ScriptName) {
+ [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf -ErrorAction 'Stop'
+ }
+ Else {
+ [string]$ScriptSource = Split-Path -Path $script:MyInvocation.MyCommand.Definition -Leaf -ErrorAction 'Stop'
+ }
+ }
+ Catch {
+ $ScriptSource = ''
+ }
+
+ ## Create script block for generating CMTrace.exe compatible log entry
+ [scriptblock]$CMTraceLogString = {
+ Param (
+ [string]$lMessage,
+ [string]$lSource,
+ [int16]$lSeverity
+ )
+ "" + "
+
+
+
+ If this bit is set, the installer increments the reference count in the shared DLL registry of the component's
+ key file. If this bit is not set, the installer increments the reference count only if the reference count
+ already exists.
+
+
+
+
+ If this bit is set, the installer does not remove the component during an uninstall. The installer registers
+ an extra system client for the component in the Windows Installer registry settings.
+
+
+
+
+ If this bit is set, the value in the KeyPath column is a key into the ODBCDataSource table.
+
+
+
+
+ If this bit is set, the installer reevaluates the value of the statement in the Condition column upon a reinstall.
+ If the value was previously False and has changed to true, the installer installs the component. If the value
+ was previously true and has changed to false, the installer removes the component even if the component has
+ other products as clients.
+
+
+
+
+ If this bit is set, the installer does not install or reinstall the component if a key path file or a key path
+ registry entry for the component already exists. The application does register itself as a client of the component.
+
+
+ Use this flag only for components that are being registered by the Registry table. Do not use this flag for
+ components registered by the AppId, Class, Extension, ProgId, MIME, and Verb tables.
+
+
+
+
+ Set this bit to mark this as a 64-bit component. This attribute facilitates the installation of packages that
+ include both 32-bit and 64-bit components. If this bit is not set, the component is registered as a 32-bit component.
+
+
+ If this is a 64-bit component replacing a 32-bit component, set this bit and assign a new GUID in the
+ ComponentId column.
+
+
+
+
+ Set this bit to disable registry reflection on all existing and new registry keys affected by this component.
+
+
+ If this bit is set, the Windows Installer calls the RegDisableReflectionKey on each key being accessed by the component.
+ This bit is available with Windows Installer version 4.0 and is ignored on 32-bit systems.
+
+
+
+
+ [MSI 4.5] Set this bit for a component in a patch package to prevent leaving orphan components on the computer.
+
+
+ If a subsequent patch is installed, marked with the SupersedeEarlier flag in its MsiPatchSequence
+ table to supersede the first patch, Windows Installer 4.5 can unregister and uninstall components marked with the
+ UninstallOnSupersedence value. If the component is not marked with this bit, installation of a superseding patch can leave
+ behind an unused component on the computer.
+
+
+
+
+ [MSI 4.5] If a component is marked with this attribute value in at least one package installed on the system,
+ the installer treats the component as marked in all packages. If a package that shares the marked component
+ is uninstalled, Windows Installer 4.5 can continue to share the highest version of the component on the system,
+ even if that highest version was installed by the package that is being uninstalled.
+
+
+
+
+ Defines flags for the Attributes column of the Control table.
+
+
+
+ If this bit is set, the control is visible on the dialog box.
+
+
+ specifies if the given control is enabled or disabled. Most controls appear gray when disabled.
+
+
+ If this bit is set, the control is displayed with a sunken, three dimensional look.
+
+
+ The Indirect control attribute specifies whether the value displayed or changed by this control is referenced indirectly.
+
+
+ If this bit is set on a control, the associated property specified in the Property column of the Control table is an integer.
+
+
+ If this bit is set the text in the control is displayed in a right-to-left reading order.
+
+
+ If this style bit is set, text in the control is aligned to the right.
+
+
+ If this bit is set, the scroll bar is located on the left side of the control, otherwise it is on the right.
+
+
+ This is a combination of the RightToLeftReadingOrder, RightAligned, and LeftScroll attributes.
+
+
+ If this bit is set on a text control, the control is displayed transparently with the background showing through the control where there are no characters.
+
+
+ If this bit is set on a text control, the occurrence of the character "&" in a text string is displayed as itself.
+
+
+ If this bit is set the text in the control is displayed on a single line.
+
+
+ If this bit is set for a text control, the control will automatically attempt to format the displayed text as a number representing a count of bytes.
+
+
+ If this bit is set, fonts are created using the user's default UI code page. Otherwise it is created using the database code page.
+
+
+ If this bit is set on an Edit control, the installer creates a multiple line edit control with a vertical scroll bar.
+
+
+ This attribute creates an edit control for entering passwords. The control displays each character as an asterisk (*) as they are typed into the control.
+
+
+ If this bit is set on a ProgressBar control, the bar is drawn as a series of small rectangles in Microsoft Windows 95-style. Otherwise it is drawn as a single continuous rectangle.
+
+
+ If this bit is set, the control shows removable volumes.
+
+
+ If this bit is set, the control shows fixed internal hard drives.
+
+
+ If this bit is set, the control shows remote volumes.
+
+
+ If this bit is set, the control shows CD-ROM volumes.
+
+
+ If this bit is set, the control shows RAM disk volumes.
+
+
+ If this bit is set, the control shows floppy volumes.
+
+
+ Specifies whether or not the rollback backup files are included in the costs displayed by the VolumeCostList control.
+
+
+ If this bit is set, the items listed in the control are displayed in a specified order. Otherwise, items are displayed in alphabetical order.
+
+
+ If this bit is set on a combo box, the edit field is replaced by a static text field. This prevents a user from entering a new value and requires the user to choose only one of the predefined values.
+
+
+ If this bit is set on a check box or a radio button group, the button is drawn with the appearance of a push button, but its logic stays the same.
+
+
+ If this bit is set, the text in the control is replaced by a bitmap image. The Text column in the Control table is a foreign key into the Binary table.
+
+
+ If this bit is set, text is replaced by an icon image and the Text column in the Control table is a foreign key into the Binary table.
+
+
+ If this bit is set, the picture is cropped or centered in the control without changing its shape or size.
+
+
+ Specifies which size of the icon image to load. If none of the bits are set, the first image is loaded.
+
+
+ Specifies which size of the icon image to load. If none of the bits are set, the first image is loaded.
+
+
+ Specifies which size of the icon image to load. If none of the bits are set, the first image is loaded.
+
+
+ If this bit is set, and the installation is not yet running with elevated privileges, the control is created with a UAC icon.
+
+
+ If this bit is set, the RadioButtonGroup has text and a border displayed around it.
+
+
+
+ Defines flags for the Type column of the CustomAction table.
+
+
+
+ Unspecified custom action type.
+
+
+ Target = entry point name
+
+
+ Target = command line args
+
+
+ Target = text string to be formatted and set into property
+
+
+ Target = entry point name, null if none to call
+
+
+ Target = entry point name, null if none to call
+
+
+ Target = property list for nested engine initialization
+
+
+ Source = File.File, file part of installation
+
+
+ Source = Directory.Directory, folder containing existing file
+
+
+ Source = Property.Property, full path to executable
+
+
+ Ignore action return status, continue running
+
+
+ Run asynchronously
+
+
+ Skip if UI sequence already run
+
+
+ Skip if UI sequence already run in same process
+
+
+ Run on client only if UI already run on client
+
+
+ Queue for execution within script
+
+
+ In conjunction with InScript: queue in Rollback script
+
+
+ In conjunction with InScript: run Commit ops from script on success
+
+
+ No impersonation, run in system context
+
+
+ Impersonate for per-machine installs on TS machines
+
+
+ Script requires 64bit process
+
+
+ Don't record the contents of the Target field in the log file
+
+
+ The custom action runs only when a patch is being uninstalled
+
+
+
+ Defines flags for the Attributes column of the Dialog table.
+
+
+
+ If this bit is set, the dialog is originally created as visible, otherwise it is hidden.
+
+
+ If this bit is set, the dialog box is modal, other dialogs of the same application cannot be put on top of it, and the dialog keeps the control while it is running.
+
+
+ If this bit is set, the dialog box can be minimized. This bit is ignored for modal dialog boxes, which cannot be minimized.
+
+
+ If this style bit is set, the dialog box will stop all other applications and no other applications can take the focus.
+
+
+ If this bit is set, the other dialogs stay alive when this dialog box is created.
+
+
+ If this bit is set, the dialog box periodically calls the installer. If the property changes, it notifies the controls on the dialog.
+
+
+ If this bit is set, the pictures on the dialog box are created with the custom palette (one per dialog received from the first control created).
+
+
+ If this style bit is set the text in the dialog box is displayed in right-to-left-reading order.
+
+
+ If this style bit is set, the text is aligned on the right side of the dialog box.
+
+
+ If this style bit is set, the scroll bar is located on the left side of the dialog box.
+
+
+ This is a combination of the RightToLeftReadingOrder, RightAligned, and the LeftScroll dialog style bits.
+
+
+ If this bit is set, the dialog box is an error dialog.
+
+
+
+ Available values for the Attributes column of the Feature table.
+
+
+
+
+ Favor local - Components of this feature that are not marked for installation from source are installed locally.
+
+
+ A component shared by two or more features, some of which are set to FavorLocal and some to FavorSource,
+ is installed locally. Components marked in the Component
+ table are always run from the source CD/server. The bits FavorLocal and FavorSource work with features not
+ listed by the ADVERTISE property.
+
+
+
+
+ Components of this feature not marked for local installation are installed to run from the source
+ CD-ROM or server.
+
+
+ A component shared by two or more features, some of which are set to FavorLocal and some to FavorSource,
+ is installed to run locally. Components marked (local-only) in the
+ Component table are always installed locally. The bits FavorLocal and FavorSource work with features
+ not listed by the ADVERTISE property.
+
+
+
+
+ Set this attribute and the state of the feature is the same as the state of the feature's parent.
+ You cannot use this option if the feature is located at the root of a feature tree.
+
+
+ Omit this attribute and the feature state is determined according to DisallowAdvertise and
+ FavorLocal and FavorSource.
+
To guarantee that the child feature's state always follows the state of its parent, even when the
+ child and parent are initially set to absent in the SelectionTree control, you must include both
+ FollowParent and UIDisallowAbsent in the attributes of the child feature.
+
Note that if you set FollowParent without setting UIDisallowAbsent, the installer cannot force
+ the child feature out of the absent state. In this case, the child feature matches the parent's
+ installation state only if the child is set to something other than absent.
+
Set FollowParent and UIDisallowAbsent to ensure a child feature follows the state of the parent feature.
+
+
+
+
+ Set this attribute and the feature state is Advertise.
+
+
+ If the feature is listed by the ADDDEFAULT property this bit is ignored and the feature state is determined
+ according to FavorLocal and FavorSource.
+
Omit this attribute and the feature state is determined according to DisallowAdvertise and FavorLocal
+ and FavorSource.
+
+
+
+
+ Set this attribute to prevent the feature from being advertised.
+
+
+ Note that this bit works only with features that are listed by the ADVERTISE property.
+
Set this attribute and if the listed feature is not a parent or child, the feature is installed according to
+ FavorLocal and FavorSource.
+
Set this attribute for the parent of a listed feature and the parent is installed.
+
Set this attribute for the child of a listed feature and the state of the child is Absent.
+
Omit this attribute and if the listed feature is not a parent or child, the feature state is Advertise.
+
Omit this attribute and if the listed feature is a parent or child, the state of both features is Advertise.
+
+
+
+
+ Set this attribute and the user interface does not display an option to change the feature state
+ to Absent. Setting this attribute forces the feature to the installation state, whether or not the
+ feature is visible in the UI.
+
+
+ Omit this attribute and the user interface displays an option to change the feature state to Absent.
+
Set FollowParent and UIDisallowAbsent to ensure a child feature follows the state of the parent feature.
+
Setting this attribute not only affects the UI, but also forces the feature to the install state whether
+ the feature is visible in the UI or not.
+
+
+
+
+ Set this attribute and advertising is disabled for the feature if the operating system shell does not
+ support Windows Installer descriptors.
+
+
+
+
+ Available values for the Attributes column of the File table.
+
+
+
+ No attributes.
+
+
+ Read-only.
+
+
+ Hidden.
+
+
+ System.
+
+
+ The file is vital for the proper operation of the component to which it belongs.
+
+
+ The file contains a valid checksum. A checksum is required to repair a file that has become corrupted.
+
+
+ This bit must only be added by a patch and if the file is being added by the patch.
+
+
+
+ The file's source type is uncompressed. If set, ignore the WordCount summary information property. If neither
+ Noncompressed nor Compressed are set, the compression state of the file is specified by the WordCount summary
+ information property. Do not set both Noncompressed and Compressed.
+
+
+
+
+ The file's source type is compressed. If set, ignore the WordCount summary information property. If neither
+ Noncompressed or Compressed are set, the compression state of the file is specified by the WordCount summary
+ information property. Do not set both Noncompressed and Compressed.
+
+
+
+
+ Defines values for the Action column of the IniFile and RemoveIniFile tables.
+
+
+
+ Creates or updates a .ini entry.
+
+
+ Creates a .ini entry only if the entry does not already exist.
+
+
+ Deletes .ini entry.
+
+
+ Creates a new entry or appends a new comma-separated value to an existing entry.
+
+
+ Deletes a tag from a .ini entry.
+
+
+
+ Defines values for the Type column of the CompLocator, IniLocator, and RegLocator tables.
+
+
+
+ Key path is a directory.
+
+
+ Key path is a file name.
+
+
+ Key path is a registry value.
+
+
+ Set this bit to have the installer search the 64-bit portion of the registry.
+
+
+
+ Defines values for the Root column of the Registry, RemoveRegistry, and RegLocator tables.
+
+
+
+ HKEY_CURRENT_USER for a per-user installation,
+ or HKEY_LOCAL_MACHINE for a per-machine installation.
+
+
+ HKEY_CLASSES_ROOT
+
+
+ HKEY_CURRENT_USER
+
+
+ HKEY_LOCAL_MACHINE
+
+
+ HKEY_USERS
+
+
+
+ Defines values for the InstallMode column of the RemoveFile table.
+
+
+
+ Never remove.
+
+
+ Remove when the associated component is being installed (install state = local or source).
+
+
+ Remove when the associated component is being removed (install state = absent).
+
+
+
+ Defines values for the ServiceType, StartType, and ErrorControl columns of the ServiceInstall table.
+
+
+
+ No flags.
+
+
+ A Win32 service that runs its own process.
+
+
+ A Win32 service that shares a process.
+
+
+ A Win32 service that interacts with the desktop.
+ This value cannot be used alone and must be added to either
+ or .
+
+
+ Service starts during startup of the system.
+
+
+ Service starts when the service control manager calls the StartService function.
+
+
+ Specifies a service that can no longer be started.
+
+
+ Logs the error, displays a message box and continues the startup operation.
+
+
+ Logs the error if it is possible and the system is restarted with the last configuration
+ known to be good. If the last-known-good configuration is being started, the startup operation fails.
+
+
+ When combined with other error flags, specifies that the overall install should fail if
+ the service cannot be installed into the system.
+
+
+
+ Defines values for the Event column of the ServiceControl table.
+
+
+
+ No control events.
+
+
+ During an install, starts the service during the StartServices action.
+
+
+ During an install, stops the service during the StopServices action.
+
+
+ During an install, deletes the service during the DeleteServices action.
+
+
+ During an uninstall, starts the service during the StartServices action.
+
+
+ During an uninstall, stops the service during the StopServices action.
+
+
+ During an uninstall, deletes the service during the DeleteServices action.
+
+
+
+ Defines values for the StyleBits column of the TextStyle table.
+
+
+
+ Bold
+
+
+ Italic
+
+
+ Underline
+
+
+ Strike out
+
+
+
+ Defines values for the Attributes column of the Upgrade table.
+
+
+
+ Migrates feature states by enabling the logic in the MigrateFeatureStates action.
+
+
+ Detects products and applications but does not remove.
+
+
+ Continues installation upon failure to remove a product or application.
+
+
+ Detects the range of versions including the value in VersionMin.
+
+
+ Dectects the range of versions including the value in VersionMax.
+
+
+ Detects all languages, excluding the languages listed in the Language column.
+
+
+
+ Defines a single column of a table in an installer database.
+
+ Once created, a ColumnInfo object is immutable.
+
+
+
+ Creates a new ColumnInfo object from a column definition.
+
+ name of the column
+ column definition string
+
+
+
+
+ Creates a new ColumnInfo object from a list of parameters.
+
+ name of the column
+ type of the column; must be one of the following:
+ Int16, Int32, String, or Stream
+ the maximum number of characters for String columns;
+ ignored for other column types
+ true if the column is required to have a non-null value
+
+
+
+ Creates a new ColumnInfo object from a list of parameters.
+
+ name of the column
+ type of the column; must be one of the following:
+ Int16, Int32, String, or Stream
+ the maximum number of characters for String columns;
+ ignored for other column types
+ true if the column is required to have a non-null value
+ true to if the column is only in-memory and
+ not persisted with the database
+ for String columns, indicates the column
+ is localizable; ignored for other column types
+
+
+
+ Gets the name of the column.
+
+ Name of the column.
+
+
+
+ Gets the name of the column.
+
+ name of the column
+
+
+
+ Gets the type of the column as a System.Type. This is one of the following: Int16, Int32, String, or Stream
+
+ type of the column
+
+
+
+ Gets the type of the column as a System.Data.DbType. This is one of the following: Int16, Int32, String, or Binary
+
+ equivalent DbType of the column
+
+
+
+ Gets the size of the column.
+
+ The size of integer columns this is either 2 or 4. For string columns this is the maximum
+ recommended length of the string, or 0 for unlimited length. For stream columns, 0 is returned.
+
+
+
+ Gets a value indicating whether the column must be non-null when inserting a record.
+
+ required status of the column
+
+
+
+ Gets a value indicating whether the column is temporary. Temporary columns are not persisted
+ when the database is saved to disk.
+
+ temporary status of the column
+
+
+
+ Gets a value indicating whether the column is a string column that is localizable.
+
+ localizable status of the column
+
+
+
+ Gets an SQL fragment that can be used to create this column within a CREATE TABLE statement.
+
+ SQL fragment to be used for creating the column
+
+ Examples:
+
+ LONG
+ SHORT TEMPORARY
+ CHAR(0) LOCALIZABLE
+ CHAR(72) NOT NULL LOCALIZABLE
+ OBJECT
+
+
+
+
+
+ Gets a short string defining the type and size of the column.
+
+
+ The definition string consists
+ of a single letter representing the data type followed by the width of the column (in characters
+ when applicable, bytes otherwise). A width of zero designates an unbounded width (for example,
+ long text fields and streams). An uppercase letter indicates that null values are allowed in
+ the column.
+
+
+
+
+
+ Accessor for information about components within the context of an installation session.
+
+
+
+
+ Checks if the collection contains a component.
+
+ name of the component
+ true if the component is in the collection, else false
+
+
+
+ Copies the features into an array.
+
+ array that receives the features
+ offset into the array
+
+
+
+ Enumerates the components in the collection.
+
+ an enumerator over all features in the collection
+
+
+
+ Gets information about a component within the context of an installation session.
+
+ name of the component
+ component object
+
+
+
+ Gets the number of components defined for the product.
+
+
+
+
+ Provides access to information about a component within the context of an installation session.
+
+
+
+
+ Gets disk space per drive required to install a component.
+
+ Requested component state
+ A list of InstallCost structures, specifying the cost for each drive for the component
+
+
+
+
+ Gets the name of the component (primary key in the Component table).
+
+
+
+
+ Gets the current install state of the designated Component.
+
+ the Session handle is invalid
+ an unknown Component was requested
+
+
+
+
+ Gets or sets the action state of the designated Component.
+
+ the Session handle is invalid
+ an unknown Component was requested
+ the user exited the installation
+
+
+
+
+ Represents an instance of a registered component.
+
+
+
+
+ Subclasses of this abstract class represent an instance
+ of a registered feature or component.
+
+
+
+
+ Gets the product that this item is a part of.
+
+
+
+
+ Gets the current installation state of the item.
+
+
+
+
+ Creates a new ComponentInstallation, automatically detecting the
+ product that the component is a part of.
+
+ component GUID
+
+
+
+
+ Creates a new ComponentInstallation for a component installed by a
+ specific product.
+
+ component GUID
+ ProductCode GUID
+
+
+
+ Gets the set of installed components for all products.
+
+ The installer configuration data is corrupt
+
+
+
+
+ Gets the component code (GUID) of the component.
+
+
+
+
+ Gets all client products of a specified component.
+
+ enumeration over all client products of the component
+ The installer configuration data is corrupt
+
+ Because clients are not ordered, any new component has an arbitrary index.
+ This means that the property may return clients in any order.
+
+
+
+
+ Gets the installed state of a component.
+
+ the installed state of the component, or InstallState.Unknown
+ if this component is not part of a product
+
+
+
+
+ Gets the full path to an installed component. If the key path for the component is a
+ registry key then the registry key is returned.
+
+ The file or registry keypath to the component, or null if the component is not available.
+ An unknown product or component was specified
+ The installer configuration data is corrupt
+
+ If the component is a registry key, the registry roots are represented numerically.
+ For example, a registry path of "HKEY_CURRENT_USER\SOFTWARE\Microsoft" would be returned
+ as "01:\SOFTWARE\Microsoft". The registry roots returned are defined as follows:
+ HKEY_CLASSES_ROOT=00, HKEY_CURRENT_USER=01, HKEY_LOCAL_MACHINE=02, HKEY_USERS=03,
+ HKEY_PERFORMANCE_DATA=04
+
+
+
+
+ Gets the set of registered qualifiers for the component.
+
+ Enumeration of the qulifiers for the component.
+ The installer configuration data is corrupt
+
+ Because qualifiers are not ordered, any new qualifier has an arbitrary index,
+ meaning the function can return qualifiers in any order.
+
+
+
+
+ Gets the qualifier code.
+
+
+
+
+ Gets the qualifier data.
+
+
+
+
+ Marks a method as a custom action entry point.
+
+
+ A custom action method must be defined as public and static,
+ take a single object as a parameter,
+ and return an enumeration value.
+
+
+
+
+ Name of the custom action entrypoint, or null if the same as the method name.
+
+
+
+
+ Marks a method as a custom action entry point.
+
+
+
+
+ Marks a method as a custom action entry point.
+
+ Name of the function to be exported,
+ defaults to the name of this method
+
+
+
+ Gets or sets the name of the custom action entrypoint. A null
+ value defaults to the name of the method.
+
+ name of the custom action entrypoint, or null if none was specified
+
+
+
+ Contains a collection of key-value pairs suitable for passing between
+ immediate and deferred/rollback/commit custom actions.
+
+
+ Call the method to get a string
+ suitable for storing in a property and reconstructing the custom action data later.
+
+
+
+
+
+
+ "CustomActionData" literal property name.
+
+
+
+
+ Creates a new empty custom action data object.
+
+
+
+
+ Reconstructs a custom action data object from data that was previously
+ persisted in a string.
+
+ Previous output from .
+
+
+
+ Adds a key and value to the data collection.
+
+ Case-sensitive data key.
+ Data value (may be null).
+ the key does not consist solely of letters,
+ numbers, and the period, underscore, and space characters.
+
+
+
+ Adds a value to the data collection, using XML serialization to persist the object as a string.
+
+ Case-sensitive data key.
+ Data value (may be null).
+ the key does not consist solely of letters,
+ numbers, and the period, underscore, and space characters.
+ The value type does not support XML serialization.
+ The value could not be serialized.
+
+
+
+ Gets a value from the data collection, using XML serialization to load the object from a string.
+
+ Case-sensitive data key.
+ The value could not be deserialized.
+
+
+
+ Determines whether the data contains an item with the specified key.
+
+ Case-sensitive data key.
+ true if the data contains an item with the key; otherwise, false
+
+
+
+ Removes the item with the specified key from the data.
+
+ Case-sensitive data key.
+ true if the item was successfully removed from the data;
+ false if an item with the specified key was not found
+
+
+
+ Gets the value with the specified key.
+
+ Case-sensitive data key.
+ Value associated with the specified key, or
+ null if an item with the specified key was not found
+ true if the data contains an item with the specified key; otherwise, false.
+
+
+
+ Adds an item with key and value to the data collection.
+
+ Case-sensitive data key, with a data value that may be null.
+ the key does not consist solely of letters,
+ numbers, and the period, underscore, and space characters.
+
+
+
+ Removes all items from the data.
+
+
+
+
+ Determines whether the data contains a specified item.
+
+ The data item to locate.
+ true if the data contains the item; otherwise, false
+
+
+
+ Copies the data to an array, starting at a particular array index.
+
+ Destination array.
+ Index in the array at which copying begins.
+
+
+
+ Removes an item from the data.
+
+ The item to remove.
+ true if the item was successfully removed from the data;
+ false if the item was not found
+
+
+
+ Returns an enumerator that iterates through the collection.
+
+ An enumerator that can be used to iterate through the collection.
+
+
+
+ Returns an enumerator that iterates through the collection.
+
+ An enumerator that can be used to iterate through the collection.
+
+
+
+ Gets a string representation of the data suitable for persisting in a property.
+
+ Data string in the form "Key1=Value1;Key2=Value2"
+
+
+
+ Ensures that a key contains valid characters.
+
+ key to be validated
+ the key does not consist solely of letters,
+ numbers, and the period, underscore, and space characters.
+
+
+
+ Serializes a value into an XML string.
+
+ Type of the value.
+ Value to be serialized.
+ Serialized value data as a string.
+
+
+
+ Deserializes a value from an XML string.
+
+ Expected type of the value.
+ Serialized value data.
+ Deserialized value object.
+
+
+
+ Escapes a value string by doubling any data-separator (semicolon) characters.
+
+
+ Escaped value string
+
+
+
+ Unescapes a value string by undoubling any doubled data-separator (semicolon) characters.
+
+
+ Unescaped value string
+
+
+
+ Loads key-value pairs from a string into the data collection.
+
+ key-value pair list of the form returned by
+
+
+
+ Gets a collection object containing all the keys of the data.
+
+
+
+
+ Gets a collection containing all the values of the data.
+
+
+
+
+ Gets or sets a data value with a specified key.
+
+ Case-sensitive data key.
+ the key does not consist solely of letters,
+ numbers, and the period, underscore, and space characters.
+
+
+
+ Gets the number of items in the data.
+
+
+
+
+ Gets a value indicating whether the data is read-only.
+
+
+
+
+ Managed-code portion of the custom action proxy.
+
+
+
+
+ Invokes a managed custom action method.
+
+ Integer handle to the installer session.
+ Name of the custom action entrypoint. This must
+ either map to an entrypoint definition in the customActions
+ config section, or be an explicit entrypoint of the form:
+ "AssemblyName!Namespace.Class.Method"
+ Pointer to a delegate used to
+ make remote API calls, if this custom action is running out-of-proc.
+ The value returned by the custom action method,
+ or ERROR_INSTALL_FAILURE if the custom action could not be invoked.
+
+
+
+ Checks the "MMsiBreak" environment variable for any matching custom action names.
+
+ List of names to search for in the environment
+ variable string.
+ True if a match was found, else false.
+
+
+
+ Locates and parses an entrypoint mapping in CustomAction.config.
+
+ Installer session handle, just used for logging.
+ Custom action entrypoint name: the key value
+ in an item in the customActions section of the config file.
+ Returned display name of the assembly from
+ the entrypoint mapping.
+ Returned class name of the entrypoint mapping.
+ Returned method name of the entrypoint mapping.
+ True if the entrypoint was found, false if not or if some error
+ occurred.
+
+
+
+ Uses reflection to load the assembly and class and find the method.
+
+ Installer session handle, just used for logging.
+ Display name of the assembly containing the
+ custom action method.
+ Fully-qualified name of the class containing the
+ custom action method.
+ Name of the custom action method.
+ The method, or null if not found.
+
+
+
+ Checks if a method has the right return and paramater types
+ for a custom action, and that it is marked by a CustomActionAttribute.
+
+ Method to be checked.
+ True if the method is a valid custom action, else false.
+
+
+
+ Accesses a Windows Installer database.
+
+
+ The method must be called before the Database is closed to write out all
+ persistent changes. If the Commit method is not called, the installer performs an implicit
+ rollback upon object destruction.
+
+ The client can use the following procedure for data access:
+ Obtain a Database object using one of the Database constructors.
+ Initiate a query using a SQL string by calling the
+ method of the Database.
+ Set query parameters in a and execute the database
+ query by calling the method of the . This
+ produces a result that can be fetched or updated.
+ Call the method of the View repeatedly to return
+ Records.
+ Update database rows of a Record object obtained by the Fetch method using
+ one of the methods of the View.
+ Release the query and any unfetched records by calling the
+ method of the View.
+ Persist any database updates by calling the Commit method of the Database.
+
+
+
+
+
+
+ Base class for Windows Installer handle types (Database, View, Record, SummaryInfo).
+
+
+ These classes implement the interface, because they
+ hold unmanaged resources (MSI handles) that should be properly disposed
+ when no longer needed.
+
+
+
+
+ Constructs a handle object from a native integer handle.
+
+ Native integer handle.
+ true to close the handle when this object is disposed or finalized
+
+
+
+ Closes the handle. After closing a handle, further method calls may throw an .
+
+
+ The finalizer of this class will NOT close the handle if it is still open,
+ because finalization can run on a separate thread from the application,
+ resulting in potential problems if handles are closed from that thread.
+ It is best that the handle be closed manually as soon as it is no longer needed,
+ as leaving lots of unused handles open can degrade performance.
+
+
+
+
+
+ Closes the handle. After closing a handle, further method calls may throw an .
+
+
+ The finalizer of this class will NOT close the handle if it is still open,
+ because finalization can run on a separate thread from the application,
+ resulting in potential problems if handles are closed from that thread.
+ It is best that the handle be closed manually as soon as it is no longer needed,
+ as leaving lots of unused handles open can degrade performance.
+
+ This method is merely an alias for the method.
+
+
+
+
+ Tests whether this handle object is equal to another handle object. Two handle objects are equal
+ if their types are the same and their native integer handles are the same.
+
+ The handle object to compare with the current handle object.
+ true if the specified handle object is equal to the current handle object; otherwise false
+
+
+
+ Gets a hash value for the handle object.
+
+ A hash code for the handle object.
+
+ The hash code is derived from the native integer handle.
+
+
+
+
+ Closes the handle. After closing a handle, further method calls may throw an .
+
+ If true, the method has been called directly or indirectly by a user's code,
+ so managed and unmanaged resources will be disposed. If false, the method has been called by the
+ runtime from inside the finalizer, and only unmanaged resources will be disposed.
+
+
+
+ Gets the native integer handle.
+
+
+
+
+ Checks if the handle is closed. When closed, method calls on the handle object may throw an .
+
+
+
+
+ Gets an object that can be used internally for safe syncronization.
+
+
+
+
+ Opens an existing database in read-only mode.
+
+ Path to the database file.
+ the database could not be created/opened
+
+ Because this constructor initiates database access, it cannot be used with a
+ running installation.
+
+ The Database object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Opens an existing database with another database as output.
+
+ Path to the database to be read.
+ Open mode for the database
+ Database object representing the created or opened database
+ the database could not be created/opened
+
+ When a database is opened as the output of another database, the summary information stream
+ of the output database is actually a read-only mirror of the original database and thus cannot
+ be changed. Additionally, it is not persisted with the database. To create or modify the
+ summary information for the output database it must be closed and re-opened.
+
+ The Database object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+ The database is opened in mode, and will be
+ automatically commited when it is closed.
+
+
+
+
+ Opens an existing database or creates a new one.
+
+ Path to the database file. If an empty string
+ is supplied, a temporary database is created that is not persisted.
+ Open mode for the database
+ the database could not be created/opened
+
+ Because this constructor initiates database access, it cannot be used with a
+ running installation.
+
+ The database object should be d after use.
+ The finalizer will close the handle if it is still open, however due to the nondeterministic
+ nature of finalization it is best that the handle be closed manually as soon as it is no
+ longer needed, as leaving lots of unused handles open can degrade performance.
+
+ A database opened in or
+ mode will be automatically commited when it is
+ closed. However a database opened in or
+ mode must have the method
+ called before it is closed, otherwise no changes will be persisted.
+
+
+
+
+ Creates a new database from an MSI handle.
+
+ Native MSI database handle.
+ True if the handle should be closed
+ when the database object is disposed
+ Path of the database file, if known
+ Mode the handle was originally opened in
+
+
+
+ Creates a new Database object from an integer database handle.
+
+
+ This method is only provided for interop purposes. A Database object
+ should normally be obtained from or
+ a public Database constructor.
+
+ Integer database handle
+ true to close the handle when this object is disposed
+
+
+
+ Schedules a file or directory for deletion after the database handle is closed.
+
+ File or directory path to be deleted. All files and subdirectories
+ under a directory are deleted.
+
+ Once an item is scheduled, it cannot be unscheduled.
+
+ The items cannot be deleted if the Database object is auto-disposed by the
+ garbage collector; the handle must be explicitly closed.
+
+ Files which are read-only or otherwise locked cannot be deleted,
+ but they will not cause an exception to be thrown.
+
+
+
+
+ Merges another database with this database.
+
+ The database to be merged into this database
+ Optional name of table to contain the names of the tables containing
+ merge conflicts, the number of conflicting rows within the table, and a reference to the table
+ with the merge conflict.
+ merge failed due to a schema difference or data conflict
+ the Database handle is invalid
+
+ Merge does not copy over embedded cabinet files or embedded transforms from the
+ reference database into the target database. Embedded data streams that are listed in the
+ Binary table or Icon table are copied from the reference database to the target database.
+ Storage embedded in the reference database are not copied to the target database.
+
+ The Merge method merges the data of two databases. These databases must have the same
+ codepage. The merge fails if any tables or rows in the databases conflict. A conflict exists
+ if the data in any row in the first database differs from the data in the corresponding row
+ of the second database. Corresponding rows are in the same table of both databases and have
+ the same primary key in both databases. The tables of non-conflicting databases must have
+ the same number of primary keys, same number of columns, same column types, same column names,
+ and the same data in rows with identical primary keys. Temporary columns however don't matter
+ in the column count and corresponding tables can have a different number of temporary columns
+ without creating conflict as long as the persistent columns match.
+
+ If the number, type, or name of columns in corresponding tables are different, the
+ schema of the two databases are incompatible and the installer will stop processing tables
+ and the merge fails. The installer checks that the two databases have the same schema before
+ checking for row merge conflicts. If the schemas are incompatible, the databases have be
+ modified.
+
+ If the data in particular rows differ, this is a row merge conflict, the merge fails
+ and creates a new table with the specified name. The first column of this table is the name
+ of the table having the conflict. The second column gives the number of rows in the table
+ having the conflict.
+
+
+
+
+ Merges another database with this database.
+
+ The database to be merged into this database
+ merge failed due to a schema difference or data conflict
+ the Database handle is invalid
+
+ MsiDatabaseMerge does not copy over embedded cabinet files or embedded transforms from
+ the reference database into the target database. Embedded data streams that are listed in
+ the Binary table or Icon table are copied from the reference database to the target database.
+ Storage embedded in the reference database are not copied to the target database.
+
+ The Merge method merges the data of two databases. These databases must have the same
+ codepage. The merge fails if any tables or rows in the databases conflict. A conflict exists
+ if the data in any row in the first database differs from the data in the corresponding row
+ of the second database. Corresponding rows are in the same table of both databases and have
+ the same primary key in both databases. The tables of non-conflicting databases must have
+ the same number of primary keys, same number of columns, same column types, same column names,
+ and the same data in rows with identical primary keys. Temporary columns however don't matter
+ in the column count and corresponding tables can have a different number of temporary columns
+ without creating conflict as long as the persistent columns match.
+
+ If the number, type, or name of columns in corresponding tables are different, the
+ schema of the two databases are incompatible and the installer will stop processing tables
+ and the merge fails. The installer checks that the two databases have the same schema before
+ checking for row merge conflicts. If the schemas are incompatible, the databases have be
+ modified.
+
+
+
+
+ Checks whether a table exists and is persistent in the database.
+
+ The table to the checked
+ true if the table exists and is persistent in the database; false otherwise
+ the table is unknown
+ the Database handle is invalid
+
+ To check whether a table exists regardless of persistence,
+ use .
+
+
+
+
+ Checks whether a table contains a persistent column with a given name.
+
+ The table to the checked
+ The name of the column to be checked
+ true if the column exists in the table; false if the column is temporary or does not exist.
+ the View could not be executed
+ the Database handle is invalid
+
+ To check whether a column exists regardless of persistence,
+ use .
+
+
+
+
+ Gets the count of all rows in the table.
+
+ Name of the table whose rows are to be counted
+ The count of all rows in the table
+ the View could not be executed
+ the Database handle is invalid
+
+
+
+ Gets the count of all rows in the table that satisfy a given condition.
+
+ Name of the table whose rows are to be counted
+ Conditional expression, such as could be placed on the end of a SQL WHERE clause
+ The count of all rows in the table satisfying the condition
+ the SQL WHERE syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+
+
+ Finalizes the persistent form of the database. All persistent data is written
+ to the writeable database, and no temporary columns or rows are written.
+
+ the Database handle is invalid
+
+ For a database open in mode, this method has no effect.
+
+ For a database open in or
+ mode, it is not necessary to call this method because the database will be automatically committed
+ when it is closed. However this method may be called at any time to persist the current state of tables
+ loaded into memory.
+
+ For a database open in or
+ mode, no changes will be persisted until this method is called. If the database object is closed without
+ calling this method, the database file remains unmodified.
+
+
+
+
+ Copies the structure and data from a specified table to a text archive file.
+
+ Name of the table to be exported
+ Path to the file to be created
+ the file path is invalid
+ the Database handle is invalid
+
+
+
+
+ Imports a database table from a text archive file, dropping any existing table.
+
+ Path to the file to be imported.
+ The table name is specified within the file.
+ the file path is invalid
+ the Database handle is invalid
+
+
+
+
+ Exports all database tables, streams, and summary information to archive files.
+
+ Path to the directory where archive files will be created
+ the directory path is invalid
+ the Database handle is invalid
+
+ The directory will be created if it does not already exist.
+
+
+
+
+ Imports all database tables, streams, and summary information from archive files.
+
+ Path to the directory from which archive files will be imported
+ the directory path is invalid
+ the Database handle is invalid
+
+
+
+
+ Creates a new record object with the requested number of fields.
+
+ Required number of fields, which may be 0.
+ The maximum number of fields in a record is limited to 65535.
+ A new record object that can be used with the database.
+
+ This method is equivalent to directly calling the
+ constructor in all cases outside of a custom action context. When in a
+ custom action session, this method allows creation of a record that can
+ work with a database other than the session database.
+
+ The Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Returns the file path of this database, or the handle value if a file path was not specified.
+
+
+
+
+ Closes the database handle. After closing a handle, further method calls may throw .
+
+ If true, the method has been called directly or
+ indirectly by a user's code, so managed and unmanaged resources will be
+ disposed. If false, only unmanaged resources will be disposed.
+
+
+
+ Gets a View object representing the query specified by a SQL string.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ A View object representing the query specified by a SQL string
+ the SQL syntax is invalid
+ the Database handle is invalid
+
+ The parameter is formatted using .
+
+ The View object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Executes the query specified by a SQL string. The query may not be a SELECT statement.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+
+
+
+ Executes the query specified by a SQL string. The query may not be a SELECT statement.
+
+ SQL query string
+ Optional Record object containing the values that replace
+ the parameter tokens (?) in the SQL query.
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ The parameter is formatted using
+ .
+
+ Multiple rows columns will be collapsed into a single one-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results.
+
+ SQL SELECT query string
+ Optional Record object containing the values that replace
+ the parameter tokens (?) in the SQL query.
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ Multiple rows columns will be collapsed into a single one-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results as integers.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ The parameter is formatted using
+ .
+
+ Multiple rows columns will be collapsed into a single one-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results as integers.
+
+ SQL SELECT query string
+ Optional Record object containing the values that replace
+ the parameter tokens (?) in the SQL query.
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ Multiple rows columns will be collapsed into a single one-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results as strings.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ The parameter is formatted using
+ .
+
+ Multiple rows columns will be collapsed into a single on-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns all results as strings.
+
+ SQL SELECT query string
+ Optional Record object containing the values that replace
+ the parameter tokens (?) in the SQL query.
+ All results combined into an array
+ the SQL syntax is invalid
+ the View could not be executed
+ the Database handle is invalid
+
+ Multiple rows columns will be collapsed into a single on-dimensional list.
+
+
+
+
+ Executes the specified SQL SELECT query and returns a single result.
+
+ SQL query string, which may contain format items
+ Zero or more objects to format
+ First field of the first result
+ the SQL syntax is invalid
+ the View could not be executed
+ or the query returned 0 results
+ the Database handle is invalid
+
+
+
+
+ Executes the specified SQL SELECT query and returns a single result.
+
+ SQL SELECT query string
+ Optional Record object containing the values that replace
+ the parameter tokens (?) in the SQL query.
+ First field of the first result
+ the SQL syntax is invalid
+ the View could not be executed
+ or the query returned 0 results
+ the Database handle is invalid
+
+
+
+
+ Creates a transform that, when applied to the object database, results in the reference database.
+
+ Database that does not include the changes
+ Name of the generated transform file, or null to only
+ check whether or not the two database are identical
+ true if a transform is generated, or false if a transform is not generated
+ because there are no differences between the two databases.
+ the transform could not be generated
+ a Database handle is invalid
+
+ A transform can add non-primary key columns to the end of a table. A transform cannot
+ be created that adds primary key columns to a table. A transform cannot be created that
+ changes the order, names, or definitions of columns.
+
+ If the transform is to be applied during an installation you must use the
+ method to populate the
+ summary information stream.
+
+
+
+
+ Creates and populates the summary information stream of an existing transform file, and
+ fills in the properties with the base and reference ProductCode and ProductVersion.
+
+ Database that does not include the changes
+ Name of the generated transform file
+ Error conditions that should be suppressed
+ when the transform is applied
+ Defines which properties should be validated
+ to verify that this transform can be applied to a database.
+ the transform summary info could not be
+ generated
+ a Database handle is invalid
+
+
+
+
+ Apply a transform to the database, recording the changes in the "_TransformView" table.
+
+ Path to the transform file
+ the transform could not be applied
+ the Database handle is invalid
+
+
+
+
+ Apply a transform to the database, suppressing any error conditions
+ specified by the transform's summary information.
+
+ Path to the transform file
+ the transform could not be applied
+ the Database handle is invalid
+
+
+
+
+ Apply a transform to the database, specifying error conditions to suppress.
+
+ Path to the transform file
+ Error conditions that are to be suppressed
+ the transform could not be applied
+ the Database handle is invalid
+
+
+
+
+ Checks whether a transform is valid for this Database, according to its validation data and flags.
+
+ Path to the transform file
+ true if the transform can be validly applied to this Database; false otherwise
+ the transform could not be applied
+ the Database handle is invalid
+
+
+
+ Checks whether a transform is valid for this Database, according to its SummaryInfo data.
+
+ SummaryInfo data of a transform file
+ true if the transform can be validly applied to this Database; false otherwise
+ error processing summary info
+ the Database or SummaryInfo handle is invalid
+
+
+
+ Gets the file path the Database was originally opened from, or null if not known.
+
+
+
+
+ Gets the open mode for the database.
+
+
+
+
+ Gets a boolean value indicating whether this database was opened in read-only mode.
+
+
+
+
+
+ Gets the collection of tables in the Database.
+
+
+
+
+ Gets or sets the code page of the Database.
+
+ error exporting/importing the codepage data
+ the Database handle is invalid
+
+ Getting or setting the code page is a slow operation because it involves an export or import
+ of the codepage data to/from a temporary file.
+
+
+
+
+ Gets the SummaryInfo object for this database that can be used to examine and modify properties
+ to the summary information stream.
+
+ the Database handle is invalid
+
+ The object returned from this property does not need to be explicitly persisted or closed.
+ Any modifications will be automatically saved when the database is committed.
+
+
+
+
+ Managed-code portion of the embedded UI proxy.
+
+
+
+
+ Initializes managed embedded UI by loading the UI class and invoking its Initialize method.
+
+ Integer handle to the installer session.
+ Name of the class that implements the embedded UI. This must
+ be of the form: "AssemblyName!Namespace.Class"
+ On entry, contains the current UI level for the installation. After this
+ method returns, the installer resets the UI level to the returned value of this parameter.
+ 0 if the embedded UI was successfully loaded and initialized,
+ ERROR_INSTALL_USEREXIT if the user canceled the installation during initialization,
+ or ERROR_INSTALL_FAILURE if the embedded UI could not be initialized.
+
+ Due to interop limitations, the successful resulting UILevel is actually returned
+ as the high-word of the return value instead of via a ref parameter.
+
+
+
+
+ Passes a progress message to the UI class.
+
+ Installer message type and message box options.
+ Handle to a record containing message data.
+ Return value returned by the UI class.
+
+
+
+ Passes a shutdown message to the UI class.
+
+
+
+
+ Instantiates a UI class from a given assembly and class name.
+
+ Installer session, for logging.
+ Name of the class that implements the embedded UI. This must
+ be of the form: "AssemblyName!Namespace.Class"
+ Interface on the UI class for handling UI messages.
+
+
+
+ Specifies a return status value for custom actions.
+
+
+
+ Action completed successfully.
+
+
+ Skip remaining actions, not an error.
+
+
+ User terminated prematurely.
+
+
+ Unrecoverable error or unhandled exception occurred.
+
+
+ Action not executed.
+
+
+
+ Specifies the open mode for a .
+
+
+
+ Open a database read-only, no persistent changes.
+
+
+ Open a database read/write in transaction mode.
+
+
+ Open a database direct read/write without transaction.
+
+
+ Create a new database, transact mode read/write.
+
+
+ Create a new database, direct mode read/write.
+
+
+
+ Log modes available for
+ and .
+
+
+
+ Disable logging.
+
+
+ Log out of memory or fatal exit information.
+
+
+ Log error messages.
+
+
+ Log warning messages.
+
+
+ Log user requests.
+
+
+ Log status messages that are not displayed.
+
+
+ Log request to determine a valid source location.
+
+
+ Log insufficient disk space error.
+
+
+ Log the start of installation actions.
+
+
+ Log the data record for installation actions.
+
+
+ Log parameters for user-interface initialization.
+
+
+ Log the property values at termination.
+
+
+
+ Sends large amounts of information to log file not generally useful to users.
+ May be used for support.
+
+
+
+
+ Log extra debugging information.
+
+
+
+
+ Log only on error.
+
+
+
+
+ Log progress bar information. This message includes information on units so far and total number
+ of units. See for an explanation of the message format. This message
+ is only sent to an external user interface and is not logged.
+
+
+
+
+ If this is not a quiet installation, then the basic UI has been initialized. If this is a full
+ UI installation, the Full UI is not yet initialized. This message is only sent to an external
+ user interface and is not logged.
+
+
+
+
+ If a full UI is being used, the full UI has ended. If this is not a quiet installation, the basic
+ UI has not yet ended. This message is only sent to an external user interface and is not logged.
+
+
+
+
+ Sent prior to display of the Full UI dialog. This message is only sent to an external user
+ interface and is not logged.
+
+
+
+
+ List of files in use that need to be replaced.
+
+
+
+
+ [MSI 4.0] List of apps that the user can request Restart Manager to shut down and restart.
+
+
+
+
+ Type of message to be processed by ,
+ , or .
+
+
+
+ Premature termination, possibly fatal OOM.
+
+
+ Formatted error message.
+
+
+ Formatted warning message.
+
+
+ User request message.
+
+
+ Informative message for log.
+
+
+ List of files in use that need to be replaced.
+
+
+ Request to determine a valid source location.
+
+
+ Insufficient disk space message.
+
+
+ Start of action: action name & description.
+
+
+ Formatted data associated with individual action item.
+
+
+ Progress gauge info: units so far, total.
+
+
+ Product info for dialog: language Id, dialog caption.
+
+
+ Sent prior to UI initialization, no string data.
+
+
+ Sent after UI termination, no string data.
+
+
+ Sent prior to display or authored dialog or wizard.
+
+
+ [MSI 4.0] List of apps that the user can request Restart Manager to shut down and restart.
+
+
+ [MSI 4.5] Sent prior to install of a product.
+
+
+ [MSI 4.5] Sent after install of a product.
+
+
+
+ Specifies the install mode for or .
+
+
+
+ Provide the component only if the feature's installation state is .
+
+
+ Only check that the component is registered, without verifying that the key file of the component exists.
+
+
+ Provide the component only if the feature exists.
+
+
+ Provide the component and perform any installation necessary to provide the component.
+
+
+
+ Specifies the run mode for .
+
+
+
+ The administrative mode is installing, or the product is installing.
+
+
+ The advertisements are installing or the product is installing or updating.
+
+
+ An existing installation is being modified or there is a new installation.
+
+
+ Rollback is enabled.
+
+
+ The log file is active. It was enabled prior to the installation session.
+
+
+ Execute operations are spooling or they are in the determination phase.
+
+
+ A reboot is necessary after a successful installation (settable).
+
+
+ A reboot is necessary to continue the installation (settable).
+
+
+ Files from cabinets and Media table files are installing.
+
+
+ The source LongFileNames is suppressed through the PID_MSISOURCE summary property.
+
+
+ The target LongFileNames is suppressed through the SHORTFILENAMES property.
+
+
+ The operating system is Windows 95, Windows 98, or Windows ME.
+
+
+ The operating system supports demand installation.
+
+
+ A custom action called from install script execution.
+
+
+ A custom action called from rollback execution script.
+
+
+ A custom action called from commit execution script.
+
+
+
+ Installed state of a Component or Feature.
+
+
+
+ The component is disabled.
+
+
+ The installation configuration data is corrupt.
+
+
+ The installation is suspended or in progress.
+
+
+ Component is set to run from source, but source is unavailable.
+
+
+ The buffer overflow is returned.
+
+
+ An invalid parameter was passed to the function.
+
+
+ An unrecognized product or feature name was passed to the function.
+
+
+ The component is broken.
+
+
+ The feature is advertised.
+
+
+ The component is being removed. In action state and not settable.
+
+
+ The component is not installed, or action state is absent but clients remain.
+
+
+ The component is installed on the local drive.
+
+
+ The component will run from the source, CD, or network.
+
+
+ The component will be installed in the default location: local or source.
+
+
+
+ Specifies the type of installation for .
+
+
+
+ Searches system for products to patch.
+
+
+ Indicates a administrative installation.
+
+
+ Indicates a particular instance.
+
+
+
+ Level of the installation user interface, specified with
+ .
+
+
+
+ Does not change UI level.
+
+
+ Uses Default UI level.
+
+
+ Silent installation.
+
+
+ Simple progress and error handling.
+
+
+ Authored UI, wizard dialogs suppressed.
+
+
+ Authored UI with wizards, progress, and errors.
+
+
+
+ When combined with the value, the installer does not display
+ the cancel button in the progress dialog.
+
+
+
+
+ When combined with the value, the installer displays progress
+ dialog boxes but does not display any modal dialog boxes or error dialog boxes.
+
+
+
+
+ When combined with another value, the installer displays a modal dialog
+ box at the end of a successful installation or if there has been an error.
+ No dialog box is displayed if the user cancels.
+
+
+
+
+ Forces display of the source resolution dialog even if the UI is otherwise silent.
+
+
+
+
+ Specifies a return status value for message handlers. These values are returned by
+ , , and .
+
+
+
+ An error was found in the message handler.
+
+
+ No action was taken.
+
+
+ IDOK
+
+
+ IDCANCEL
+
+
+ IDABORT
+
+
+ IDRETRY
+
+
+ IDIGNORE
+
+
+ IDYES
+
+
+ IDNO
+
+
+
+ Specifies the different patch states for .
+
+
+
+ Invalid value.
+
+
+ Patches applied to a product.
+
+
+ Patches that are superseded by other patches.
+
+
+ Patches that are obsolesced by other patches.
+
+
+ Patches that are registered to a product but not applied.
+
+
+ All valid patch states.
+
+
+
+ Specifies the reinstall mode for or .
+
+
+
+ Reinstall only if file is missing.
+
+
+ Reinstall if file is missing, or older version.
+
+
+ Reinstall if file is missing, or equal or older version.
+
+
+ Reinstall if file is missing, or not exact version.
+
+
+ Checksum executables, reinstall if missing or corrupt.
+
+
+ Reinstall all files, regardless of version.
+
+
+ Insure required machine reg entries.
+
+
+ Insure required user reg entries.
+
+
+ Validate shortcuts items.
+
+
+ Use re-cache source install package.
+
+
+
+ Attributes for methods.
+
+
+
+ No attributes.
+
+
+ Request that the Windows Installer not shutdown the embedded UI until the transaction is complete.
+
+
+ Request that the Windows Installer transfer the embedded UI from the original installation.
+
+
+
+ Transform error conditions available for or
+ .
+
+
+
+ No error conditions.
+
+
+ Adding a row that already exists.
+
+
+ Deleting a row that doesn't exist.
+
+
+ Adding a table that already exists.
+
+
+ Deleting a table that doesn't exist.
+
+
+ Updating a row that doesn't exist.
+
+
+ Transform and database code pages do not match and neither code page is neutral.
+
+
+ Create the temporary _TransformView table when applying the transform.
+
+
+
+ Transform validation flags available for .
+
+
+
+ Validate no properties.
+
+
+ Default language must match base database.
+
+
+ Product must match base database.
+
+
+ Check major version only.
+
+
+ Check major and minor versions only.
+
+
+ Check major, minor, and update versions.
+
+
+ Installed version < base version.
+
+
+ Installed version <= base version.
+
+
+ Installed version = base version.
+
+
+ Installed version >= base version.
+
+
+ Installed version > base version.
+
+
+ UpgradeCode must match base database.
+
+
+
+ Specifies the installation context for s,
+ es, and
+
+
+
+
+ Not installed.
+
+
+ User managed install context.
+
+
+ User non-managed context.
+
+
+ Per-machine context.
+
+
+ All contexts, or all valid values.
+
+
+ All user-managed contexts.
+
+
+
+ Defines the type of error encountered by the , ,
+ or methods of the class.
+
+
+
+ No error.
+
+
+ The new record duplicates primary keys of the existing record in a table.
+
+
+ There are no null values allowed, or the column is about to be deleted but is referenced by another row.
+
+
+ The corresponding record in a foreign table was not found.
+
+
+ The data is greater than the maximum value allowed.
+
+
+ The data is less than the minimum value allowed.
+
+
+ The data is not a member of the values permitted in the set.
+
+
+ An invalid version string was supplied.
+
+
+ The case was invalid. The case must be all uppercase or all lowercase.
+
+
+ An invalid GUID was supplied.
+
+
+ An invalid wildcard file name was supplied, or the use of wildcards was invalid.
+
+
+ An invalid identifier was supplied.
+
+
+ Invalid language IDs were supplied.
+
+
+ An invalid file name was supplied.
+
+
+ An invalid path was supplied.
+
+
+ An invalid conditional statement was supplied.
+
+
+ An invalid format string was supplied.
+
+
+ An invalid template string was supplied.
+
+
+ An invalid string was supplied in the DefaultDir column of the Directory table.
+
+
+ An invalid registry path string was supplied.
+
+
+ An invalid string was supplied in the CustomSource column of the CustomAction table.
+
+
+ An invalid property string was supplied.
+
+
+ The _Validation table is missing a reference to a column.
+
+
+ The category column of the _Validation table for the column is invalid.
+
+
+ The table in the Keytable column of the _Validation table was not found or loaded.
+
+
+ The value in the MaxValue column of the _Validation table is less than the value in the MinValue column.
+
+
+ An invalid cabinet name was supplied.
+
+
+ An invalid shortcut target name was supplied.
+
+
+ The string is too long for the length specified by the column definition.
+
+
+ An invalid localization attribute was supplied. (Primary keys cannot be localized.)
+
+
+
+ Specifies the modify mode for .
+
+
+
+
+ Refreshes the information in the supplied record without changing the position
+ in the result set and without affecting subsequent fetch operations.
+
+
+
+ Refreshes the data in a Record.
+
+
+ Inserts a Record into the view.
+
+
+ Updates the View with new data from the Record.
+
+
+ Updates or inserts a Record into the View.
+
+
+ Updates or deletes and inserts a Record into the View.
+
+
+ Inserts or validates a record.
+
+
+ Deletes a Record from the View.
+
+
+ Inserts a Record into the View. The inserted data is not persistent.
+
+
+ Validates a record.
+
+
+ Validates a new record.
+
+
+ Validates fields of a fetched or new record. Can validate one or more fields of an incomplete record.
+
+
+ Validates a record that will be deleted later.
+
+
+
+ Base class for Windows Installer exceptions.
+
+
+
+
+ Creates a new InstallerException with a specified error message and a reference to the
+ inner exception that is the cause of this exception.
+
+ The message that describes the error.
+ The exception that is the cause of the current exception. If the
+ innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
+ is raised in a catch block that handles the inner exception.
+
+
+
+ Creates a new InstallerException with a specified error message.
+
+ The message that describes the error.
+
+
+
+ Creates a new InstallerException.
+
+
+
+
+ Initializes a new instance of the InstallerException class with serialized data.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Sets the SerializationInfo with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Gets extended information about the error, or null if no further information
+ is available.
+
+ A Record object. Field 1 of the Record contains the installer
+ message code. Other fields contain data specific to the particular error.
+
+ If the record is passed to , it is formatted
+ by looking up the string in the current database. If there is no installation
+ session, the format string may be obtained by a query on the Error table using
+ the error code, followed by a call to .
+ Alternatively, the standard MSI message can by retrieved by calling the
+ method.
+
+ The Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Gets the system error code that resulted in this exception, or 0 if not applicable.
+
+
+
+
+ Gets a message that describes the exception. This message may contain detailed
+ formatted error data if it was available.
+
+
+
+
+ User Canceled the installation.
+
+
+
+
+ Creates a new InstallCanceledException with a specified error message and a reference to the
+ inner exception that is the cause of this exception.
+
+ The message that describes the error.
+ The exception that is the cause of the current exception. If the
+ innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
+ is raised in a catch block that handles the inner exception.
+
+
+
+ Creates a new InstallCanceledException with a specified error message.
+
+ The message that describes the error.
+
+
+
+ Creates a new InstallCanceledException.
+
+
+
+
+ Initializes a new instance of the InstallCanceledException class with serialized data.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A bad SQL query string was passed to or .
+
+
+
+
+ Creates a new BadQuerySyntaxException with a specified error message and a reference to the
+ inner exception that is the cause of this exception.
+
+ The message that describes the error.
+ The exception that is the cause of the current exception. If the
+ innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
+ is raised in a catch block that handles the inner exception.
+
+
+
+ Creates a new BadQuerySyntaxException with a specified error message.
+
+ The message that describes the error.
+
+
+
+ Creates a new BadQuerySyntaxException.
+
+
+
+
+ Initializes a new instance of the BadQuerySyntaxException class with serialized data.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A method was called on an invalid installer handle. The handle may have been already closed.
+
+
+
+
+ Creates a new InvalidHandleException with a specified error message and a reference to the
+ inner exception that is the cause of this exception.
+
+ The message that describes the error.
+ The exception that is the cause of the current exception. If the
+ innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
+ is raised in a catch block that handles the inner exception.
+
+
+
+ Creates a new InvalidHandleException with a specified error message.
+
+ The message that describes the error.
+
+
+
+ Creates a new InvalidHandleException.
+
+
+
+
+ Initializes a new instance of the InvalidHandleException class with serialized data.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A failure occurred when executing . The exception may contain
+ details about the merge conflict.
+
+
+
+
+ Creates a new MergeException with a specified error message and a reference to the
+ inner exception that is the cause of this exception.
+
+ The message that describes the error.
+ The exception that is the cause of the current exception. If the
+ innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
+ is raised in a catch block that handles the inner exception.
+
+
+
+ Creates a new MergeException with a specified error message.
+
+ The message that describes the error.
+
+
+
+ Creates a new MergeException.
+
+
+
+
+ Initializes a new instance of the MergeException class with serialized data.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Sets the SerializationInfo with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Gets the number of merge conflicts in each table, corresponding to the tables returned by
+ .
+
+
+
+
+ Gets the list of tables containing merge conflicts.
+
+
+
+
+ Gets a message that describes the merge conflits.
+
+
+
+
+ Defines a callback function that the installer calls for progress notification and error messages.
+
+
+
+
+ [MSI 3.1] Defines a callback function that the installer calls for record-based progress notification and error messages.
+
+
+
+
+ Provides static methods for installing and configuring products and patches.
+
+
+
+
+ Enables an external user-interface handler. This external UI handler is called before the
+ normal internal user-interface handler. The external UI handler has the option to suppress
+ the internal UI by returning a non-zero value to indicate that it has handled the messages.
+
+ A callback delegate that handles the UI messages
+ Specifies which messages to handle using the external message handler.
+ If the external handler returns a non-zero result, then that message will not be sent to the UI,
+ instead the message will be logged if logging has been enabled.
+ The previously set external handler, or null if there was no previously set handler
+
+ To restore the previous UI handler, a second call is made to SetExternalUI using the
+ ExternalUIHandler returned by the first call to SetExternalUI and specifying
+ as the message filter.
+
+ The external user interface handler does not have full control over the external user
+ interface unless is called with the uiLevel parameter set to
+ . If SetInternalUI is not called, the internal user
+ interface level defaults to . As a result, any message not
+ handled by the external user interface handler is handled by Windows Installer. The initial
+ "Preparing to install..." dialog always appears even if the external user interface
+ handler handles all messages.
+
+ SetExternalUI should only be called from a bootstrapping application. You cannot call
+ it from a custom action
+
+
+
+
+ [MSI 3.1] Enables a record-based external user-interface handler. This external UI handler is called
+ before the normal internal user-interface handler. The external UI handler has the option to suppress
+ the internal UI by returning a non-zero value to indicate that it has handled the messages.
+
+ A callback delegate that handles the UI messages
+ Specifies which messages to handle using the external message handler.
+ If the external handler returns a non-zero result, then that message will not be sent to the UI,
+ instead the message will be logged if logging has been enabled.
+ The previously set external handler, or null if there was no previously set handler
+
+ To restore the previous UI handler, a second call is made to SetExternalUI using the
+ ExternalUIHandler returned by the first call to SetExternalUI and specifying
+ as the message filter.
+
+ The external user interface handler does not have full control over the external user
+ interface unless is called with the uiLevel parameter set to
+ . If SetInternalUI is not called, the internal user
+ interface level defaults to . As a result, any message not
+ handled by the external user interface handler is handled by Windows Installer. The initial
+ "Preparing to install..." dialog always appears even if the external user interface
+ handler handles all messages.
+
+ SetExternalUI should only be called from a bootstrapping application. You cannot call
+ it from a custom action
+
+
+
+
+ Enables the installer's internal user interface. Then this user interface is used
+ for all subsequent calls to user-interface-generating installer functions in this process.
+
+ Specifies the level of complexity of the user interface
+ Handle to a window, which becomes the owner of any user interface created.
+ A pointer to the previous owner of the user interface is returned.
+ The previous user interface level
+
+
+
+
+ Enables the installer's internal user interface. Then this user interface is used
+ for all subsequent calls to user-interface-generating installer functions in this process.
+ The owner of the user interface does not change.
+
+ Specifies the level of complexity of the user interface
+ The previous user interface level
+
+
+
+
+ Enables logging of the selected message type for all subsequent install sessions in
+ the current process space.
+
+ One or more mode flags specifying the type of messages to log
+ Full path to the log file. A null path disables logging,
+ in which case the logModes paraneter is ignored.
+ an invalid log mode was specified
+ This method takes effect on any new installation processes. Calling this
+ method from within a custom action will not start logging for that installation.
+
+
+
+ Enables logging of the selected message type for all subsequent install sessions in
+ the current process space.
+
+ One or more mode flags specifying the type of messages to log
+ Full path to the log file. A null path disables logging,
+ in which case the logModes paraneter is ignored.
+ If true, the log lines will be appended to any existing file content.
+ If false, the log file will be truncated if it exists. The default is false.
+ If true, the log will be flushed after every line.
+ If false, the log will be flushed every 20 lines. The default is true.
+ an invalid log mode was specified
+
+ This method takes effect on any new installation processes. Calling this
+ method from within a custom action will not start logging for that installation.
+
+
+
+
+ increments the usage count for a particular feature and returns the installation state for
+ that feature. This method should be used to indicate an application's intent to use a feature.
+
+ The product code of the product.
+ The feature to be used.
+ Must have the value .
+ The installed state of the feature.
+
+ The UseFeature method should only be used on features known to be published. The application
+ should determine the status of the feature by calling either the FeatureState method or
+ Features method.
+
+
+
+
+ Opens an installer package for use with functions that access the product database and install engine,
+ returning an Session object.
+
+ Path to the package
+ Specifies whether or not the create a Session object that ignores the
+ computer state and that is incapable of changing the current computer state. A value of false yields
+ the normal behavior. A value of true creates a "safe" Session object that cannot change of the current
+ machine state.
+ A Session object allowing access to the product database and install engine
+ The product could not be opened
+ The installer configuration data is corrupt
+
+ Note that only one Session object can be opened by a single process. OpenPackage cannot be used in a
+ custom action because the active installation is the only session allowed.
+
+ A "safe" Session object ignores the current computer state when opening the package and prevents
+ changes to the current computer state.
+
+ The Session object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Opens an installer package for use with functions that access the product database and install engine,
+ returning an Session object.
+
+ Database used to create the session
+ Specifies whether or not the create a Session object that ignores the
+ computer state and that is incapable of changing the current computer state. A value of false yields
+ the normal behavior. A value of true creates a "safe" Session object that cannot change of the current
+ machine state.
+ A Session object allowing access to the product database and install engine
+ The product could not be opened
+ The installer configuration data is corrupt
+
+ Note that only one Session object can be opened by a single process. OpenPackage cannot be used in a
+ custom action because the active installation is the only session allowed.
+
+ A "safe" Session object ignores the current computer state when opening the package and prevents
+ changes to the current computer state.
+
+ The Session object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Opens an installer package for an installed product using the product code.
+
+ Product code of the installed product
+ A Session object allowing access to the product database and install engine,
+ or null if the specified product is not installed.
+ An unknown product was requested
+ The product could not be opened
+ The installer configuration data is corrupt
+
+ Note that only one Session object can be opened by a single process. OpenProduct cannot be
+ used in a custom action because the active installation is the only session allowed.
+
+ The Session object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Gets the full component path, performing any necessary installation. This method prompts for source if
+ necessary and increments the usage count for the feature.
+
+ Product code for the product that contains the feature with the necessary component
+ Feature ID of the feature with the necessary component
+ Component code of the necessary component
+ Installation mode; this can also include bits from
+ Path to the component
+
+
+
+
+ Gets the full component path for a qualified component that is published by a product and
+ performs any necessary installation. This method prompts for source if necessary and increments
+ the usage count for the feature.
+
+ Specifies the component ID for the requested component. This may not be the
+ GUID for the component itself but rather a server that provides the correct functionality, as in the
+ ComponentId column of the PublishComponent table.
+ Specifies a qualifier into a list of advertising components (from PublishComponent Table).
+ Installation mode; this can also include bits from
+ Optional; specifies the product to match that has published the qualified component.
+ Path to the component
+
+
+
+
+ Gets the full path to a Windows Installer component containing an assembly. This method prompts for a source and
+ increments the usage count for the feature.
+
+ Assembly name
+ Set to null for global assemblies. For private assemblies, set to the full path of the
+ application configuration file (.cfg file) or executable file (.exe) of the application to which the assembly
+ has been made private.
+ Installation mode; this can also include bits from
+ True if this is a Win32 assembly, false if it is a .NET assembly
+ Path to the assembly
+
+
+
+
+ Installs files that are unexpectedly missing.
+
+ Product code for the product that owns the component to be installed
+ Component to be installed
+ Specifies the way the component should be installed.
+ the user exited the installation
+
+
+
+
+ Installs files that are unexpectedly missing.
+
+ Product code for the product that owns the file to be installed
+ File to be installed
+ the user exited the installation
+
+
+
+
+ Reinstalls a feature.
+
+ Product code for the product containing the feature to be reinstalled
+ Feature to be reinstalled
+ Reinstall modes
+ the user exited the installation
+
+
+
+
+ Opens an installer package and initializes an install session.
+
+ path to the patch package
+ command line property settings
+ There was an error installing the product
+
+ To completely remove a product, set REMOVE=ALL in .
+
+ This method displays the user interface with the current settings and
+ log mode. You can change user interface settings with the
+ and functions. You can set the log mode with the
+ function.
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ Installs or uninstalls a product.
+
+ Product code of the product to be configured.
+ Specifies the default installation configuration of the
+ product. The parameter is ignored and all features
+ are installed if the parameter is set to any other
+ value than . This parameter must be either 0
+ (install using authored feature levels), 65535 (install all features), or a value
+ between 0 and 65535 to install a subset of available features.
+ Specifies the installation state for the product.
+ Specifies the command line property settings. This should
+ be a list of the format Property=Setting Property=Setting.
+ There was an error configuring the product
+
+ This method displays the user interface with the current settings and
+ log mode. You can change user interface settings with the
+ and functions. You can set the log mode with the
+ function.
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ Configures the installed state for a product feature.
+
+ Product code of the product to be configured.
+ Specifies the feature ID for the feature to be configured.
+ Specifies the installation state for the feature.
+ There was an error configuring the feature
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ For each product listed by the patch package as eligible to receive the patch, ApplyPatch invokes
+ an installation and sets the PATCH property to the path of the patch package.
+
+ path to the patch package
+ optional command line property settings
+ There was an error applying the patch
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ For each product listed by the patch package as eligible to receive the patch, ApplyPatch invokes
+ an installation and sets the PATCH property to the path of the patch package.
+
+ path to the patch package
+ path to the product to be patched, if installType
+ is set to
+ type of installation to patch
+ optional command line property settings
+ There was an error applying the patch
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ Removes one or more patches from a single product. To remove a patch from
+ multiple products, RemovePatches must be called for each product.
+
+ List of patches to remove. Each patch can be specified by the GUID
+ of the patch or the full path to the patch package.
+ The ProductCode (GUID) of the product from which the patches
+ are removed. This parameter cannot be null.
+ optional command line property settings
+ There was an error removing the patches
+
+ The and properties should be
+ tested after calling this method.
+
+
+
+
+ Determines which patches apply to a specified product MSI and in what sequence.
+
+ Full path to an MSI file that is the target product
+ for the set of patches.
+ An array of strings specifying the patches to be checked. Each item
+ may be the path to an MSP file, the path an XML file, or just an XML blob.
+ Callback to be invoked for each inapplicable patch, reporting the
+ reason the patch is not applicable. This value may be left null if that information is not
+ desired.
+ An array of selected patch strings from , indicating
+ the set of applicable patches. The items are re-ordered to be in the best sequence.
+
+ If an item in is a file path but does not end in .MSP or .XML,
+ it is assumed to be an MSP file.
+
+ As this overload uses InstallContext.None, it does not consider the current state of
+ the system.
+
+
+
+
+ Determines which patches apply to a specified product and in what sequence. If
+ the product is installed, this method accounts for patches that have already been applied to
+ the product and accounts for obsolete and superceded patches.
+
+ The product that is the target for the set of patches. This may be
+ either a ProductCode (GUID) of a product that is currently installed, or the path to a an
+ MSI file.
+ An array of strings specifying the patches to be checked. Each item
+ may be the path to an MSP file, the path an XML file, or just an XML blob.
+ Callback to be invoked for each inapplicable patch, reporting the
+ reason the patch is not applicable. This value may be left null if that information is not
+ desired.
+ Specifies a security identifier (SID) of a user. This parameter restricts
+ the context of enumeration for this user account. This parameter cannot be the special SID
+ strings s-1-1-0 (everyone) or s-1-5-18 (local system). If is set to
+ or , then
+ must be null. For the current user context,
+ can be null and can be set to
+ or .
+ Restricts the enumeration to per-user-unmanaged, per-user-managed,
+ or per-machine context, or (if referring to an MSI) to no system context at all. This
+ parameter can be , ,
+ , or .
+ An array of selected patch strings from , indicating
+ the set of applicable patches. The items are re-ordered to be in the best sequence.
+
+ If an item in is a file path but does not end in .MSP or .XML,
+ it is assumed to be an MSP file.
+
+ Passing an InstallContext of None only analyzes the MSI file; it does not consider the
+ current state of the system. You cannot use InstallContext.None with a ProductCode GUID.
+
+
+
+
+ Applies one or more patches to products that are eligible to receive the patch.
+ For each product listed by the patch package as eligible to receive the patch, ApplyPatch invokes
+ an installation and sets the PATCH property to the path of the patch package.
+
+ The set of patch packages to be applied.
+ Each item is the full path to an MSP file.
+ Provides the ProductCode of the product being patched. If this parameter
+ is null, the patches are applied to all products that are eligible to receive these patches.
+ optional command line property settings
+
+
+
+
+ Extracts information from a patch that can be used to determine whether the patch
+ applies on a target system. The method returns an XML string that can be provided to
+
+ instead of the full patch file.
+
+ Full path to the patch being queried.
+ XML string containing patch data.
+
+
+
+
+ [MSI 3.1] Migrates a user's application configuration data to a new SID.
+
+ Previous user SID that data is to be migrated from
+ New user SID that data is to be migrated to
+
+
+
+
+ Advertises a product to the local computer.
+
+ Path to the package of the product being advertised
+ True if the product is user-assigned; false if it is machine-assigned.
+ Semi-colon delimited list of transforms to be applied. This parameter may be null.
+ The language to use if the source supports multiple languages
+ the specified package file does not exist
+
+
+
+
+
+ Generates an advertise script. The method enables the installer to write to a
+ script the registry and shortcut information used to assign or publish a product.
+
+ Path to the package of the product being advertised
+ path to script file to be created with the advertise information
+ Semi-colon delimited list of transforms to be applied. This parameter may be null.
+ The language to use if the source supports multiple languages
+ the specified package file does not exist
+
+
+
+
+
+ Generates an advertise script. The method enables the installer to write to a
+ script the registry and shortcut information used to assign or publish a product.
+
+ Path to the package of the product being advertised
+ path to script file to be created with the advertise information
+ Semi-colon delimited list of transforms to be applied. This parameter may be null.
+ The language to use if the source supports multiple languages
+ Targeted processor architecture.
+ True to install multiple instances through product code changing transform.
+ Advertises a new instance of the product. Requires that the parameter
+ includes the instance transform that changes the product code.
+
+
+
+
+
+ Copies an advertise script file to the local computer.
+
+ Path to a script file generated by
+
+ Flags controlling advertisement
+ True if specified items are to be removed instead of being created
+
+ The process calling this function must be running under the LocalSystem account. To advertise an
+ application for per-user installation to a targeted user, the thread that calls this function must
+ impersonate the targeted user. If the thread calling this function is not impersonating a targeted
+ user, the application is advertised to all users for installation with elevated privileges.
+
+
+
+
+ Processes an advertise script file into the specified locations.
+
+ Path to a script file generated by
+
+ An optional path to a folder in which advertised icon files and transform
+ files are located. If this parameter is null, no icon or transform files are written.
+ True if shortcuts should be created
+ True if specified items are to be removed instead of created
+
+ The process calling this function must be running under the LocalSystem account. To advertise an
+ application for per-user installation to a targeted user, the thread that calls this function must
+ impersonate the targeted user. If the thread calling this function is not impersonating a targeted
+ user, the application is advertised to all users for installation with elevated privileges.
+
+
+
+
+ Gets product information for an installer script file.
+
+ Path to a script file generated by
+
+ ProductInstallation stub with advertise-related properties filled in.
+ An invalid product property was requested
+
+ Only the following properties will be filled in in the returned object:
+
+
+
+ Gets a Windows Installer error message in the system default language.
+
+ The error number.
+ The message string, or null if the error message is not found.
+
+ The returned string may have tokens such as [2] and [3] that are meant to be substituted
+ with context-specific values.
+
+ Error numbers greater than 2000 refer to MSI "internal" errors, and are always
+ returned in English.
+
+
+
+
+ Gets a Windows Installer error message in a specified language.
+
+ The error number.
+ The locale for the message.
+ The message string, or null if the error message or locale is not found.
+
+ The returned string may have tokens such as [2] and [3] that are meant to be substituted
+ with context-specific values.
+
+ Error numbers greater than 2000 refer to MSI "internal" errors, and are always
+ returned in English.
+
+
+
+
+ Gets a formatted Windows Installer error message in the system default language.
+
+ Error record containing the error number in the first field, and
+ error-specific parameters in the other fields.
+ The message string, or null if the error message is not found.
+
+ Error numbers greater than 2000 refer to MSI "internal" errors, and are always
+ returned in English.
+
+
+
+
+ Gets a formatted Windows Installer error message in a specified language.
+
+ Error record containing the error number in the first field, and
+ error-specific parameters in the other fields.
+ The locale for the message.
+ The message string, or null if the error message or locale is not found.
+
+ Error numbers greater than 2000 refer to MSI "internal" errors, and are always
+ returned in English.
+
+
+
+
+ Gets the version string of the path specified using the format that the installer
+ expects to find it in in the database.
+
+ Path to the file
+ Version string in the "#.#.#.#" format, or an empty string if the file
+ does not contain version information
+ the file does not exist or could not be read
+
+
+
+
+ Gets the language string of the path specified using the format that the installer
+ expects to find them in in the database.
+
+ Path to the file
+ Language string in the form of a decimal language ID, or an empty string if the file
+ does not contain a language ID
+ the file does not exist or could not be read
+
+
+
+
+ Gets a 128-bit hash of the specified file.
+
+ Path to the file
+ Integer array of length 4 which receives the
+ four 32-bit parts of the hash value.
+ the file does not exist or
+ could not be read
+
+
+
+
+ Examines a shortcut and returns its product, feature name, and component if available.
+
+ Full path to a shortcut
+ ShortcutTarget structure containing target product code, feature, and component code
+
+
+
+
+ Verifies that the given file is an installation package.
+
+ Path to the package
+ True if the file is an installation package; false otherwise.
+ the specified package file does not exist
+ the package file could not be opened
+
+
+
+
+ [MSI 4.0] Gets the list of files that can be updated by one or more patches.
+
+ ProductCode (GUID) of the product which is
+ the target of the patches
+ list of file paths of one or more patches to be
+ analyzed
+ List of absolute paths of files that can be updated when the
+ patches are applied on this system.
+
+
+
+
+ Indicates whether a system reboot is required after running an installation or configuration operation.
+
+
+
+
+ Indicates whether a system reboot has been initiated after running an installation or configuration operation.
+
+
+
+
+ Gets the current version of the installer.
+
+
+
+
+ Accessor for information about features within the context of an installation session.
+
+
+
+
+ Checks if the collection contains a feature.
+
+ name of the feature
+ true if the feature is in the collection, else false
+
+
+
+ Copies the features into an array.
+
+ array that receives the features
+ offset into the array
+
+
+
+ Enumerates the features in the collection.
+
+ an enumerator over all features in the collection
+
+
+
+ Gets information about a feature within the context of an installation session.
+
+ name of the feature
+ feature object
+
+
+
+ Gets the number of features defined for the product.
+
+
+
+
+ Provides access to information about a feature within the context of an installation session.
+
+
+
+
+ Calculates the disk space required by the feature and its selected children and parent features.
+
+ If true, the parent features are included in the cost.
+ If true, the child features are included in the cost.
+ Specifies the installation state.
+ The disk space requirement in bytes.
+
+
+
+
+ Gets the name of the feature (primary key in the Feature table).
+
+
+
+
+ Gets the current install state of the feature.
+
+ the Session handle is invalid
+ an unknown feature was requested
+
+
+
+
+ Gets or sets the action state of the feature.
+
+ the Session handle is invalid
+ an unknown feature was requested
+
+ When changing the feature action, the action state of all the Components linked to the changed
+ Feature records are also updated appropriately, based on the new feature Select state.
+ All Features can be configured at once by specifying the keyword ALL instead of a specific feature name.
+
+ Since the lpAttributes paramter of
+ MsiGetFeatureInfo
+ does not contain an equivalent flag for , this flag will
+ not be retrieved.
+
+ Since the dwAttributes parameter of
+ MsiSetFeatureAttributes
+ does not contain an equivalent flag for , the presence
+ of this flag will be ignored.
+
+
+
+
+ Gets the title of the feature.
+
+ the Session handle is invalid
+ an unknown feature was requested
+
+
+
+
+ Represents an instance of a feature of an installed product.
+
+
+
+
+ Creates a new FeatureInstallation instance for a feature of a product.
+
+ feature name
+ ProductCode GUID
+
+
+
+ Gets the name of the feature.
+
+
+
+
+ Gets the installed state of the feature.
+
+
+
+
+
+ Gets the parent of the feature, or null if the feature has no parent (it is a root feature).
+
+
+ Invocation of this property may be slightly costly for products with many features,
+ because it involves an enumeration of all the features in the product.
+
+
+
+
+ Gets the usage metrics for the feature.
+
+
+ If no usage metrics are recorded, the value is 0.
+
+
+
+
+ Holds data about the usage of a feature.
+
+
+
+
+ Gets count of the number of times the feature has been used.
+
+
+
+
+ Gets the date the feature was last used.
+
+
+
+
+ [MSI 4.5] Interface for an embedded external user interface for an installation.
+
+
+ Classes which implement this interface must have a public constructor that takes no parameters.
+
+
+
+
+ Initializes the embedded UI.
+
+ Handle to the installer which can be used to get and set properties.
+ The handle is only valid for the duration of this method call.
+ Path to the directory that contains all the files from the MsiEmbeddedUI table.
+ On entry, contains the current UI level for the installation. After this
+ method returns, the installer resets the UI level to the returned value of this parameter.
+ True if the embedded UI was successfully initialized; false if the installation
+ should continue without the embedded UI.
+ The installation was canceled by the user.
+ The embedded UI failed to initialize and
+ causes the installation to fail.
+
+
+
+
+ Processes information and progress messages sent to the user interface.
+
+ Message type.
+ Record that contains message data.
+ Message box buttons.
+ Message box icon.
+ Message box default button.
+ Result of processing the message.
+
+
+
+
+ Shuts down the embedded UI at the end of the installation.
+
+
+ If the installation was canceled during initialization, this method will not be called.
+ If the installation was canceled or failed at any later point, this method will be called at the end.
+
+
+
+
+ Subclasses of this abstract class represent a unique instance of a
+ registered product or patch installation.
+
+
+
+
+ Gets the user security identifier (SID) under which this product or patch
+ installation is available.
+
+
+
+
+ Gets the user context of this product or patch installation.
+
+
+
+
+ Gets the source list of this product or patch installation.
+
+
+
+
+ Gets a value indicating whether this product or patch is installed on the current system.
+
+
+
+
+ Gets a property about the product or patch installation.
+
+ Name of the property being retrieved.
+
+
+
+
+ Represents a per-drive disk space cost for an installation.
+
+
+
+
+ Creates a new InstallCost object.
+
+ name of the drive this cost data applies to
+ installation cost on this drive, as a number of bytes
+ temporary disk space required on this drive, as a number of bytes
+
+
+
+ The name of the drive this cost data applies to.
+
+
+
+
+ The installation cost on this drive, as a number of bytes.
+
+
+
+
+ The temporary disk space required on this drive, as a number of bytes.
+
+
+ This temporary space requirement is space needed only for the duration
+ of the installation, over the final footprint on disk.
+
+
+
+
+ Receives an exception from
+
+ indicating the reason a particular patch is not applicable to a product.
+
+ MSP file path, XML file path, or XML blob that was passed to
+
+ exception indicating the reason the patch is not applicable
+
+ If is an or subclass, then
+ its and
+ properties will indicate a more specific reason the patch was not applicable.
+
+ The could also be a FileNotFoundException if the
+ patch string was a file path.
+
+
+
+
+ [MSI 4.5] Handle to a multi-session install transaction.
+
+
+
+
+
+ [MSI 4.5] Begins transaction processing of a multi-package installation.
+
+ Name of the multi-package installation.
+ Select optional behavior when beginning the transaction.
+ The transaction could not be initialized.
+
+
+
+
+ Internal constructor.
+
+
+ The second parameter is an array in order to receive multiple values from the initialization method.
+
+
+
+
+ Creates a new Transaction object from an integer handle.
+
+ Integer transaction handle
+ true to close the handle when this object is disposed
+
+
+
+ Makes the current process the owner of the multi-package installation transaction.
+
+ Select optional behavior when joining the transaction.
+ The transaction handle is not valid.
+ The transaction could not be joined.
+
+
+
+
+ Ends the install transaction and commits all changes to the system belonging to the transaction.
+
+ The transaction could not be committed.
+
+ Runs any Commit Custom Actions and commits to the system any changes to Win32 or common language
+ runtime assemblies. Deletes the rollback script, and after using this option, the transaction's
+ changes can no longer be undone with a Rollback Installation.
+
+ This method can only be called by the current owner of the transaction.
+
+
+
+
+ Gets the name of the transaction.
+
+
+
+
+ Notifies listeners when the process that owns the transaction changed.
+
+
+
+
+ Represents a media disk source of a product or a patch.
+
+
+
+
+ Creates a new media disk.
+
+
+
+
+
+
+
+ Gets or sets the disk id of the media disk.
+
+
+
+
+ Gets or sets the volume label of the media disk.
+
+
+
+
+ Gets or sets the disk prompt of the media disk.
+
+
+
+
+ The Patch object represents a unique instance of a patch that has been
+ registered or applied.
+
+
+
+
+ Enumerates patch installations based on certain criteria.
+
+ PatchCode (GUID) of the patch to be enumerated. Only
+ instances of patches within the scope of the context specified by the
+ and parameters will be
+ enumerated. This parameter may be set to null to enumerate all patches in the specified
+ context.
+ ProductCode (GUID) product whose patches are to be
+ enumerated. If non-null, patch enumeration is restricted to instances of this product
+ within the specified context. If null, the patches for all products under the specified
+ context are enumerated.
+ Specifies a security identifier (SID) that restricts the context
+ of enumeration. A SID value other than s-1-1-0 is considered a user SID and restricts
+ enumeration to the current user or any user in the system. The special SID string
+ s-1-1-0 (Everyone) specifies enumeration across all users in the system. This parameter
+ can be set to null to restrict the enumeration scope to the current user. When
+ is set to the machine context only,
+ must be null.
+ Specifies the user context.
+ The of patches to return.
+
+
+
+
+ Creates a new object for accessing information about a patch installation on the current system.
+
+ Patch code (GUID) of the patch.
+ ProductCode (GUID) the patch has been applied to.
+ This parameter may be null for patches that are registered only and not yet
+ applied to any product.
+
+ All available user contexts will be queried.
+
+
+
+
+ Creates a new object for accessing information about a patch installation on the current system.
+
+ Registered patch code (GUID) of the patch.
+ ProductCode (GUID) the patch has been applied to.
+ This parameter may be null for patches that are registered only and not yet
+ applied to any product.
+ The specific user, when working in a user context. This
+ parameter may be null to indicate the current user. The parameter must be null
+ when working in a machine context.
+ The user context. The calling process must have administrative
+ privileges to get information for a product installed for a user other than the
+ current user.
+
+ If the is null, the Patch object may
+ only be used to read and update the patch's SourceList information.
+
+
+
+
+ Enumerates all patch installations on the system.
+
+ Enumeration of patch objects.
+
+
+
+
+ Gets the patch code (GUID) of the patch.
+
+
+
+
+ Gets the ProductCode (GUID) of the product.
+
+
+
+
+ Gets a value indicating whether this patch is currently installed.
+
+
+
+
+ Gets a value indicating whether this patch is marked as obsolte.
+
+
+
+
+ Gets a value indicating whether this patch is present but has been
+ superseded by a more recent installed patch.
+
+
+
+
+ Gets the installation state of this instance of the patch.
+
+ An unknown patch was requested
+ The installer configuration data is corrupt
+
+
+
+ Gets the cached patch file that the product uses.
+
+
+
+
+ Gets the set of patch transforms that the last patch
+ installation applied to the product.
+
+
+ This value may not be available for per-user, non-managed applications
+ if the user is not logged on.
+
+
+
+
+ Gets the date and time when the patch is applied to the product.
+
+
+
+
+ True patch is marked as possible to uninstall from the product.
+
+
+ Even if this property is true, the installer can still block the
+ uninstallation if this patch is required by another patch that
+ cannot be uninstalled.
+
+
+
+
+ Get the registered display name for the patch.
+
+
+
+
+ Gets the registered support information URL for the patch.
+
+
+
+
+ Gets information about a specific patch installation.
+
+ The property being retrieved; see remarks for valid properties.
+ The property value, or an empty string if the property is not set for the patch.
+ An unknown patch or property was requested
+ The installer configuration data is corrupt
+
+
+
+
+ Represents a unique instance of a product that
+ is either advertised, installed or unknown.
+
+
+
+
+ Gets the set of all products with a specified upgrade code. This method lists the
+ currently installed and advertised products that have the specified UpgradeCode
+ property in their Property table.
+
+ Upgrade code of related products
+ Enumeration of product codes
+
+
+
+
+ Enumerates product installations based on certain criteria.
+
+ ProductCode (GUID) of the product instances to be enumerated. Only
+ instances of products within the scope of the context specified by the
+ and parameters will be
+ enumerated. This parameter may be set to null to enumerate all products in the specified
+ context.
+ Specifies a security identifier (SID) that restricts the context
+ of enumeration. A SID value other than s-1-1-0 is considered a user SID and restricts
+ enumeration to the current user or any user in the system. The special SID string
+ s-1-1-0 (Everyone) specifies enumeration across all users in the system. This parameter
+ can be set to null to restrict the enumeration scope to the current user. When
+ is set to the machine context only,
+ must be null.
+ Specifies the user context.
+ An enumeration of product objects for enumerated product instances.
+
+
+
+
+ Creates a new object for accessing information about a product installation on the current system.
+
+ ProductCode (GUID) of the product.
+
+ All available user contexts will be queried.
+
+
+
+
+ Creates a new object for accessing information about a product installation on the current system.
+
+ ProductCode (GUID) of the product.
+ The specific user, when working in a user context. This
+ parameter may be null to indicate the current user. The parameter must be null
+ when working in a machine context.
+ The user context. The calling process must have administrative
+ privileges to get information for a product installed for a user other than the
+ current user.
+
+
+
+ Gets the installed state for a product feature.
+
+ The feature being queried; identifier from the
+ Feature table
+ Installation state of the feature for the product instance: either
+ , ,
+ or .
+
+
+
+
+ Gets the installed state for a product component.
+
+ The component being queried; GUID of the component
+ as found in the ComponentId column of the Component table.
+ Installation state of the component for the product instance: either
+ or .
+
+
+
+
+ Obtains and stores the user information and product ID from an installation wizard.
+
+
+ This method is typically called by an application during the first run of the application. The application
+ first gets the or .
+ If those properties are missing, the application calls CollectUserInfo.
+ CollectUserInfo opens the product's installation package and invokes a wizard sequence that collects
+ user information. Upon completion of the sequence, user information is registered. Since this API requires
+ an authored user interface, the user interface level should be set to full by calling
+ as .
+
+ The CollectUserInfo method invokes a FirstRun dialog from the product installation database.
+
+
+
+
+ Some products might write some invalid/nonstandard version strings to the registry.
+ This method tries to get the best data it can.
+
+ Version string retrieved from the registry.
+ Version object, or null if the version string is completely invalid.
+
+
+
+ Enumerates all product installations on the system.
+
+ An enumeration of product objects.
+
+
+
+
+ Gets the set of published features for the product.
+
+ Enumeration of published features for the product.
+ The installer configuration data is corrupt
+
+ Because features are not ordered, any new feature has an arbitrary index, meaning
+ this property can return features in any order.
+
+
+
+
+ Gets the ProductCode (GUID) of the product.
+
+
+
+
+ Gets a value indicating whether this product is installed on the current system.
+
+
+
+
+ Gets a value indicating whether this product is advertised on the current system.
+
+
+
+
+ Checks whether the product is installed with elevated privileges. An application is called
+ a "managed application" if elevated (system) privileges are used to install the application.
+
+ True if the product is elevated; false otherwise
+
+ Note that this property does not take into account policies such as AlwaysInstallElevated,
+ but verifies that the local system owns the product's registry data.
+
+
+
+
+ Gets the source list of this product installation.
+
+
+
+
+ The support link.
+
+
+
+
+ The support telephone.
+
+
+
+
+ Date and time the product was installed.
+
+
+
+
+ The installed product name.
+
+
+
+
+ The installation location.
+
+
+
+
+ The installation source.
+
+
+
+
+ The local cached package.
+
+
+
+
+ The publisher.
+
+
+
+
+ URL about information.
+
+
+
+
+ The URL update information.
+
+
+
+
+ The product version.
+
+
+
+
+ The product identifier.
+
+
+
+
+
+ The company that is registered to use the product.
+
+
+
+
+ The owner who is registered to use the product.
+
+
+
+
+ Transforms.
+
+
+
+
+ Product language.
+
+
+
+
+ Human readable product name.
+
+
+
+
+ True if the product is advertised per-machine;
+ false if it is per-user or not advertised.
+
+
+
+
+ Identifier of the package that a product is installed from.
+
+
+
+
+ Version of the advertised product.
+
+
+
+
+ Primary icon for the package.
+
+
+
+
+ Name of the installation package for the advertised product.
+
+
+
+
+ True if the advertised product can be serviced by
+ non-administrators without elevation.
+
+
+
+
+ Gets information about an installation of a product.
+
+ Name of the property being retrieved.
+ An unknown product or property was requested
+ The installer configuration data is corrupt
+
+
+
+
+ The Record object is a container for holding and transferring a variable number of values.
+ Fields within the record are numerically indexed and can contain strings, integers, streams,
+ and null values. Record fields are indexed starting with 1. Field 0 is a special format field.
+
+
+ Most methods on the Record class have overloads that allow using either a number
+ or a name to designate a field. However note that field names only exist when the
+ Record is directly returned from a query on a database. For other records, attempting
+ to access a field by name will result in an InvalidOperationException.
+
+
+
+
+ Creates a new record object with the requested number of fields.
+
+ Required number of fields, which may be 0.
+ The maximum number of fields in a record is limited to 65535.
+
+ The Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Creates a new record object, providing values for an arbitrary number of fields.
+
+ The values of the record fields. The parameters should be of type Int16, Int32 or String
+
+ The Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Reports whether a record field is null.
+
+ Specifies the field to check.
+ True if the field is null, false otherwise.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+ Reports whether a record field is null.
+
+ Specifies the field to check.
+ True if the field is null, false otherwise.
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+ Gets the length of a record field. The count does not include the terminating null.
+
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+ The returned data size is 0 if the field is null, non-existent,
+ or an internal object pointer. The method also returns 0 if the handle is not a valid
+ Record handle.
+
+ If the data is in integer format, the property returns 2 or 4.
+
+ If the data is in string format, the property returns the character count
+ (not including the NULL terminator).
+
+ If the data is in stream format, the property returns the byte count.
+
+
+
+
+ Gets the length of a record field. The count does not include the terminating null.
+
+ Specifies the field to check.
+ The field name does not match any
+ of the named fields in the Record.
+
The returned data size is 0 if the field is null, non-existent,
+ or an internal object pointer. The method also returns 0 if the handle is not a valid
+ Record handle.
+
+ If the data is in integer format, the property returns 2 or 4.
+
+ If the data is in string format, the property returns the character count
+ (not including the NULL terminator).
+
+ If the data is in stream format, the property returns the byte count.
+
+
+
+
+ Gets a field value as an integer.
+
+ Specifies the field to retrieve.
+ Integer value of the field, or 0 if the field is null.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+
+ Gets a field value as an integer.
+
+ Specifies the field to retrieve.
+ Integer value of the field, or 0 if the field is null.
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+
+ Gets a field value as an integer.
+
+ Specifies the field to retrieve.
+ Integer value of the field, or null if the field is null.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+
+ Gets a field value as an integer.
+
+ Specifies the field to retrieve.
+ Integer value of the field, or null if the field is null.
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+
+ Sets the value of a field to an integer.
+
+ Specifies the field to set.
+ new value of the field
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+
+ Sets the value of a field to an integer.
+
+ Specifies the field to set.
+ new value of the field
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+
+ Sets the value of a field to a nullable integer.
+
+ Specifies the field to set.
+ new value of the field
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+
+ Sets the value of a field to a nullable integer.
+
+ Specifies the field to set.
+ new value of the field
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+
+ Gets a field value as a string.
+
+ Specifies the field to retrieve.
+ String value of the field, or an empty string if the field is null.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+ Gets a field value as a string.
+
+ Specifies the field to retrieve.
+ String value of the field, or an empty string if the field is null.
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+ Sets the value of a field to a string.
+
+ Specifies the field to set.
+ new value of the field
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+
+
+
+ Sets the value of a field to a string.
+
+ Specifies the field to set.
+ new value of the field
+ The field name does not match any
+ of the named fields in the Record.
+
+
+
+ Reads a record stream field into a file.
+
+ Specifies the field of the Record to get.
+ Specifies the path to the file to contain the stream.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+ Attempt to extract a storage from a database open
+ in read-write mode, or from a database without an associated file path
+
+ This method is capable of directly extracting substorages. To do so, first select both the
+ `Name` and `Data` column of the `_Storages` table, then get the stream of the `Data` field.
+ However, substorages may only be extracted from a database that is open in read-only mode.
+
+
+
+
+ Reads a record stream field into a file.
+
+ Specifies the field of the Record to get.
+ Specifies the path to the file to contain the stream.
+ The field name does not match any
+ of the named fields in the Record.
+ Attempt to extract a storage from a database open
+ in read-write mode, or from a database without an associated file path
+
+ This method is capable of directly extracting substorages. To do so, first select both the
+ `Name` and `Data` column of the `_Storages` table, then get the stream of the `Data` field.
+ However, substorages may only be extracted from a database that is open in read-only mode.
+
+
+
+
+ Gets a record stream field.
+
+ Specifies the field of the Record to get.
+ A Stream that reads the field data.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+ This method is not capable of reading substorages. To extract a substorage,
+ use .
+
+
+
+
+ Gets a record stream field.
+
+ Specifies the field of the Record to get.
+ A Stream that reads the field data.
+ The field name does not match any
+ of the named fields in the Record.
+
+ This method is not capable of reading substorages. To extract a substorage,
+ use .
+
+
+
+
+ Sets a record stream field from a file. Stream data cannot be inserted into temporary fields.
+
+ Specifies the field of the Record to set.
+ Specifies the path to the file containing the stream.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+ The contents of the specified file are read into a stream object. The stream persists if
+ the Record is inserted into the Database and the Database is committed.
+
+ To reset the stream to its beginning you must pass in null for filePath.
+ Do not pass an empty string, "", to reset the stream.
+
+ Setting a stream with this method is more efficient than setting a field to a
+ FileStream object.
+
+
+
+
+ Sets a record stream field from a file. Stream data cannot be inserted into temporary fields.
+
+ Specifies the field name of the Record to set.
+ Specifies the path to the file containing the stream.
+ The field name does not match any
+ of the named fields in the Record.
+
+ The contents of the specified file are read into a stream object. The stream persists if
+ the Record is inserted into the Database and the Database is committed.
+ To reset the stream to its beginning you must pass in null for filePath.
+ Do not pass an empty string, "", to reset the stream.
+
+ Setting a stream with this method is more efficient than setting a field to a
+ FileStream object.
+
+
+
+
+ Sets a record stream field from a Stream object. Stream data cannot be inserted into temporary fields.
+
+ Specifies the field of the Record to set.
+ Specifies the stream data.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+ The stream persists if the Record is inserted into the Database and the Database is committed.
+
+
+
+
+ Sets a record stream field from a Stream object. Stream data cannot be inserted into temporary fields.
+
+ Specifies the field name of the Record to set.
+ Specifies the stream data.
+ The field name does not match any
+ of the named fields in the Record.
+
+ The stream persists if the Record is inserted into the Database and the Database is committed.
+
+
+
+
+ Gets a formatted string representation of the Record.
+
+ A formatted string representation of the Record.
+
+ If field 0 of the Record is set to a nonempty string, it is used to format the data in the Record.
+
+
+
+
+
+
+ Gets a formatted string representation of the Record, optionally using a Session to format properties.
+
+ an optional Session instance that will be used to lookup any
+ properties in the Record's format string
+ A formatted string representation of the Record.
+
+ If field 0 of the Record is set to a nonempty string, it is used to format the data in the Record.
+
+
+
+
+
+
+ Gets a formatted string representation of the Record.
+
+ String to be used to format the data in the Record,
+ instead of the Record's format string.
+ A formatted string representation of the Record.
+
+
+
+
+ Gets a formatted string representation of the Record, optionally using a Session to format properties.
+
+ String to be used to format the data in the Record,
+ instead of the Record's format string.
+ an optional Session instance that will be used to lookup any
+ properties in the Record's format string
+ A formatted string representation of the Record.
+
+
+
+
+ Gets or sets field 0 of the Record, which is the format string.
+
+
+
+
+ Gets or sets a record field value.
+
+ Specifies the name of the field of the Record to get or set.
+ The name does not match any known field of the Record.
+
+ When getting a field, the type of the object returned depends on the type of the Record field.
+ The object will be one of: Int16, Int32, String, Stream, or null.
+
+ When setting a field, the type of the object provided will be converted to match the View
+ query that returned the record, or if Record was not returned from a view then the type of
+ the object provided will determine the type of the Record field. The object should be one of:
+ Int16, Int32, String, Stream, or null.
+
+
+
+
+ Gets or sets a record field value.
+
+ Specifies the field of the Record to get or set.
+ The field is less than 0 or greater than the
+ number of fields in the Record.
+
+ Record fields are indexed starting with 1. Field 0 is a special format field.
+
+ When getting a field, the type of the object returned depends on the type of the Record field.
+ The object will be one of: Int16, Int32, String, Stream, or null. If the Record was returned
+ from a View, the type will match that of the field from the View query. Otherwise, the type
+ will match the type of the last value set for the field.
+
+ When setting a field, the type of the object provided will be converted to match the View
+ query that returned the Record, or if Record was not returned from a View then the type of
+ the object provided will determine the type of the Record field. The object should be one of:
+ Int16, Int32, String, Stream, or null.
+
+ The type-specific getters and setters are slightly more efficient than this property, since
+ they don't have to do the extra work to infer the value's type every time.
+
+
+
+
+ Assigns ID numbers to the MSI APIs that are remotable.
+
+
+ This enumeration MUST stay in sync with the
+ unmanaged equivalent in RemoteMsiSession.h!
+
+
+
+
+ Defines the signature of the native function
+ in SfxCA.dll that implements the remoting call.
+
+
+
+
+ Redirects native API calls to either the normal NativeMethods class
+ or to out-of-proc calls via the remoting channel.
+
+
+
+
+ Checks if the current process is using remoting to access the
+ MSI session and database APIs.
+
+
+
+
+ Sets a delegate that is used to make remote API calls.
+
+
+ The implementation of this delegate is provided by the
+ custom action host DLL.
+
+
+
+
+ The Session object controls the installation process. It opens the
+ install database, which contains the installation tables and data.
+
+
+ This object is associated with a standard set of action functions,
+ each performing particular operations on data from one or more tables. Additional
+ custom actions may be added for particular product installations. The basic engine
+ function is a sequencer that fetches sequential records from a designated sequence
+ table, evaluates any specified condition expression, and executes the designated
+ action. Actions not recognized by the engine are deferred to the UI handler object
+ for processing, usually dialog box sequences.
+
+ Note that only one Session object can be opened by a single process.
+
+
+
+
+ Creates a new Session object from an integer session handle.
+
+ Integer session handle
+ true to close the handle when this object is disposed or finalized
+
+ This method is only provided for interop purposes. A Session object
+ should normally be obtained by calling
+ or .
+
+
+
+
+ Performs any enabled logging operations and defers execution to the UI handler
+ object associated with the engine.
+
+ Type of message to be processed
+ Contains message-specific fields
+ A message-dependent return value
+ the Session or Record handle is invalid
+ an invalid message kind is specified
+ the user exited the installation
+ the message-handler failed for an unknown reason
+
+ Logging may be selectively enabled for the various message types.
+ See the method.
+
+ If record field 0 contains a formatting string, it is used to format the data in
+ the other fields. Else if the message is an error, warning, or user message, an attempt
+ is made to find a message template in the Error table for the current database using the
+ error number found in field 1 of the record for message types and return values.
+
+ The parameter may also include message-box flags from
+ the following enumerations: System.Windows.Forms.MessageBoxButtons,
+ System.Windows.Forms.MessageBoxDefaultButton, System.Windows.Forms.MessageBoxIcon. These
+ flags can be combined with the InstallMessage with a bitwise OR.
+
+ Note, this method never returns Cancel or Error values. Instead, appropriate
+ exceptions are thrown in those cases.
+
+
+
+
+ Writes a formatted message to the log, if logging is enabled.
+
+ The line to be written to the log, containing 0 or more format specifiers
+ An array containing 0 or more objects to be formatted
+
+
+
+
+ Evaluates a logical expression containing symbols and values.
+
+ conditional expression
+ The result of the condition evaluation
+ the Session handle is invalid
+ the condition is null or empty
+ the conditional expression is invalid
+
+
+
+
+ Evaluates a logical expression containing symbols and values, specifying a default
+ value to be returned in case the condition is empty.
+
+ conditional expression
+ value to return if the condition is empty
+ The result of the condition evaluation
+ the Session handle is invalid
+ the conditional expression is invalid
+
+
+
+
+ Formats a string containing installer properties.
+
+ A format string containing property tokens
+ A formatted string containing property data
+ the Record handle is invalid
+
+
+
+
+ Returns a formatted string from record data.
+
+ Record object containing a template and data to be formatted.
+ The template string must be set in field 0 followed by any referenced data parameters.
+ A formatted string containing the record data
+ the Record handle is invalid
+
+
+
+
+ Returns a formatted string from record data using a specified format.
+
+ Record object containing a template and data to be formatted
+ Format string to be used instead of field 0 of the Record
+ A formatted string containing the record data
+ the Record handle is invalid
+
+
+
+
+ Retrieves product properties (not session properties) from the product database.
+
+ Value of the property, or an empty string if the property is not set.
+
+ Note this is not the correct method for getting ordinary session properties. For that,
+ see the indexer on the Session class.
+
+
+
+
+ Gets the designated mode flag for the current install session.
+
+ The type of mode to be checked.
+ The value of the designated mode flag.
+ the Session handle is invalid
+ an invalid mode flag was specified
+
+ Note that only the following run modes are available to read from
+ a deferred custom action:
+
+
+
+
+
+
+
+
+ Sets the designated mode flag for the current install session.
+
+ The type of mode to be set.
+ The desired value of the mode.
+ the Session handle is invalid
+ an invalid mode flag was specified
+ the mode cannot not be set
+
+
+
+
+ Gets the full path to the designated folder on the source media or server image.
+
+ the folder was not found in the Directory table
+ the Session handle is invalid
+
+
+
+
+ Gets the full path to the designated folder on the installation target drive.
+
+ the folder was not found in the Directory table
+ the Session handle is invalid
+
+
+
+
+ Sets the full path to the designated folder on the installation target drive.
+
+ the folder was not found in the Directory table
+ the Session handle is invalid
+
+ Setting the target path of a directory changes the path specification for the directory
+ in the in-memory Directory table. Also, the path specifications of all other path objects
+ in the table that are either subordinate or equivalent to the changed path are updated
+ to reflect the change. The properties for each affected path are also updated.
+
+ If an error occurs in this function, all updated paths and properties revert to
+ their previous values. Therefore, it is safe to treat errors returned by this function
+ as non-fatal.
+
+ Do not attempt to configure the target path if the components using those paths
+ are already installed for the current user or for a different user. Check the
+ ProductState property before setting the target path to determine if the product
+ containing this component is installed.
+
+
+
+
+ Sets the install level for the current installation to a specified value and
+ recalculates the Select and Installed states for all features in the Feature
+ table. Also sets the Action state of each component in the Component table based
+ on the new level.
+
+ New install level
+ the Session handle is invalid
+
+ The SetInstallLevel method sets the following:
+ The installation level for the current installation to a specified value
+ The Select and Installed states for all features in the Feature table
+ The Action state of each component in the Component table, based on the new level
+
+ If 0 or a negative number is passed in the ilnstallLevel parameter,
+ the current installation level does not change, but all features are still
+ updated based on the current installation level.
+
+
+
+
+ Executes a built-in action, custom action, or user-interface wizard action.
+
+ Name of the action to execute. Case-sensitive.
+ the Session handle is invalid
+ the user exited the installation
+
+ The DoAction method executes the action that corresponds to the name supplied. If the
+ name is not recognized by the installer as a built-in action or as a custom action in
+ the CustomAction table, the name is passed to the user-interface handler object, which
+ can invoke a function or a dialog box. If a null action name is supplied, the installer
+ uses the upper-case value of the ACTION property as the action to perform. If no property
+ value is defined, the default action is performed, defined as "INSTALL".
+
+ Actions that update the system, such as the InstallFiles and WriteRegistryValues
+ actions, cannot be run by calling MsiDoAction. The exception to this rule is if DoAction
+ is called from a custom action that is scheduled in the InstallExecuteSequence table
+ between the InstallInitialize and InstallFinalize actions. Actions that do not update the
+ system, such as AppSearch or CostInitialize, can be called.
+
+
+
+
+ Executes a built-in action, custom action, or user-interface wizard action.
+
+ Name of the action to execute. Case-sensitive.
+ Optional data to be passed to a deferred custom action.
+ the Session handle is invalid
+ the user exited the installation
+
+ The DoAction method executes the action that corresponds to the name supplied. If the
+ name is not recognized by the installer as a built-in action or as a custom action in
+ the CustomAction table, the name is passed to the user-interface handler object, which
+ can invoke a function or a dialog box. If a null action name is supplied, the installer
+ uses the upper-case value of the ACTION property as the action to perform. If no property
+ value is defined, the default action is performed, defined as "INSTALL".
+
+ Actions that update the system, such as the InstallFiles and WriteRegistryValues
+ actions, cannot be run by calling MsiDoAction. The exception to this rule is if DoAction
+ is called from a custom action that is scheduled in the InstallExecuteSequence table
+ between the InstallInitialize and InstallFinalize actions. Actions that do not update the
+ system, such as AppSearch or CostInitialize, can be called.
+
+ If the called action is a deferred, rollback, or commit custom action, then the supplied
+ will be available via the
+ property of that custom action's session.
+
+
+
+
+ Executes an action sequence described in the specified table.
+
+ Name of the table containing the action sequence.
+ the Session handle is invalid
+ the user exited the installation
+
+ This method queries the specified table, ordering the actions by the numbers in the Sequence column.
+ For each row retrieved, an action is executed, provided that any supplied condition expression does
+ not evaluate to FALSE.
+
+ An action sequence containing any actions that update the system, such as the InstallFiles and
+ WriteRegistryValues actions, cannot be run by calling DoActionSequence. The exception to this rule is if
+ DoActionSequence is called from a custom action that is scheduled in the InstallExecuteSequence table
+ between the InstallInitialize and InstallFinalize actions. Actions that do not update the system, such
+ as AppSearch or CostInitialize, can be called.
+
+
+
+
+ Implements formatting for data.
+
+ Type of format object to get.
+ The the current instance, if is the same type
+ as the current instance; otherwise, null.
+
+
+
+ Closes the session handle. Also closes the active database handle, if it is open.
+ After closing a handle, further method calls may throw an .
+
+ If true, the method has been called directly
+ or indirectly by a user's code, so managed and unmanaged resources will
+ be disposed. If false, only unmanaged resources will be disposed.
+
+
+
+ Throws an exception if the custom action is not able to access immedate session details.
+
+
+
+
+ Gets the Database for the install session.
+
+ the Session handle is invalid
+ the Database cannot be accessed
+
+ Normally there is no need to close this Database object. The same object can be
+ used throughout the lifetime of the Session, and it will be closed when the Session
+ is closed.
+
+
+
+
+ Gets or sets the string value of a named installer property, as maintained by the
+ Session object in the in-memory Property table, or, if it is prefixed with a percent
+ sign (%), the value of a system environment variable for the current process.
+
+ the Session handle is invalid
+
+
+
+
+ Gets an accessor for components in the current session.
+
+
+
+
+ Gets an accessor for features in the current session.
+
+
+
+
+ Gets custom action data for the session that was supplied by the caller.
+
+
+
+
+
+ Gets the (short) list of properties that are available from non-immediate custom actions.
+
+
+
+
+ Holds information about the target of a shortcut file.
+
+
+
+
+ Tests whether two shortcut targets have the same product code, feature, and/or component code.
+
+ The first shortcut target to compare.
+ The second shortcut target to compare.
+ True if all parts of the targets are the same, else false.
+
+
+
+ Tests whether two shortcut targets have the same product code, feature, and/or component code.
+
+ The first shortcut target to compare.
+ The second shortcut target to compare.
+ True if any parts of the targets are different, else false.
+
+
+
+ Tests whether two shortcut targets have the same product code, feature, and/or component code.
+
+ The shortcut target to compare to the current object.
+ True if is a shortcut target and all parts of the targets are the same, else false.
+
+
+
+ Generates a hash code using all parts of the shortcut target.
+
+ An integer suitable for hashing the shortcut target.
+
+
+
+ Gets the target product code of the shortcut, or null if not available.
+
+
+
+
+ Gets the name of the target feature of the shortcut, or null if not available.
+
+
+
+
+ Gets the target component code of the shortcut, or null if not available.
+
+
+
+
+ A list of sources for an installed product or patch.
+
+
+
+
+ Adds a network or URL source to the source list of the installed product.
+
+ Path to the source to be added. This parameter is
+ expected to contain only the path without the filename.
+
+ If this method is called with a new source, the installer adds the source
+ to the end of the source list.
+
+ If this method is called with a source already existing in the source
+ list, it has no effect.
+
+
+
+
+
+ Adds or reorders a network or URL source for the product or patch.
+
+ Path to the source to be added. This parameter is
+ expected to contain only the path without the filename.
+ Specifies the priority order in which the source
+ will be inserted
+
+ If this method is called with a new source and
+ is set to 0, the installer adds the source to the end of the source list.
+
+ If this method is called with a source already existing in the source
+ list and is set to 0, the installer retains the
+ source's existing index.
+
+ If the method is called with an existing source in the source list
+ and is set to a non-zero value, the source is
+ removed from its current location in the list and inserted at the position
+ specified by Index, before any source that already exists at that position.
+
+ If the method is called with a new source and Index is set to a
+ non-zero value, the source is inserted at the position specified by
+ , before any source that already exists at
+ that position. The index value for all sources in the list after the
+ index specified by Index are updated to ensure unique index values and
+ the pre-existing order is guaranteed to remain unchanged.
+
+ If is greater than the number of sources
+ in the list, the source is placed at the end of the list with an index
+ value one larger than any existing source.
+
+
+
+
+ Checks if the specified source exists in the list.
+
+ case-insensitive source to look for
+ true if the source exists in the list, false otherwise
+
+
+
+ Copies the network and URL sources from this list into an array.
+
+ destination array to be filed
+ offset into the destination array where copying begins
+
+
+
+ Removes a network or URL source.
+
+
+
+
+
+ Forces the installer to search the source list for a valid
+ source the next time a source is required. For example, when the
+ installer performs an installation or reinstallation, or when it
+ requires the path for a component that is set to run from source.
+
+
+
+
+
+ Gets the list of disks registered for the media source of
+ the patch or product installation.
+
+
+
+
+ Gets the number of network and URL sources in the list.
+
+
+
+
+ Gets a boolean value indicating whether the list is read-only.
+ A SourceList is never read-only.
+
+ read-only status of the list
+
+
+
+ Gets or sets the path relative to the root of the installation media.
+
+
+
+
+ Gets or sets the prompt template that is used when prompting the user
+ for installation media.
+
+
+
+
+ Gets or sets the most recently used source location for the product.
+
+
+
+
+ Gets or sets the name of the Windows Installer package or patch package
+ on the source.
+
+
+
+
+ Gets the type of the last-used source.
+
+
+
+
"n" = network location
+
"u" = URL location
+
"m" = media location
+
(empty string) = no last used source
+
+
+
+
+
+ Gets or sets source list information properties of a product or patch installation.
+
+ The source list information property name.
+ An unknown product, patch, or property was requested
+
+
+
+
+ A list of source media for an installed product or patch.
+
+
+
+
+ Adds or updates a disk of the media source for the product or patch.
+
+
+ To change the disk prompt only, get the existing volume label from the
+ registry and provide it in this call along with the new disk prompt.
+ Passing a null or empty string for
+ registers an empty string as the volume label.
+
To change the volume label only, get the existing disk prompt
+ that is registered and provide it when calling SourceListAddMediaDisk
+ along with the new volume label. Passing null or an empty string
+ registers an empty string as the disk prompt.
+
+
+
+ Checks if the specified media disk id exists in the list.
+
+ disk id of the media to look for
+ true if the media exists in the list, false otherwise
+
+
+
+ Copies the source media info from this list into an array.
+
+ destination array to be filed
+ offset into the destination array where copying begins
+
+
+
+ Removes a specified disk from the set of registered disks.
+
+ ID of the disk to remove
+
+
+
+
+ Gets the number of source media in the list.
+
+
+
+
+ Gets a boolean value indicating whether the list is read-only.
+ A SourceMediaList is never read-only.
+
+ read-only status of the list
+
+
+
+ Provides access to summary information of a Windows Installer database.
+
+
+
+
+ Gets a SummaryInfo object that can be used to examine, update, and add
+ properties to the summary information stream of a package or transform.
+
+ Path to the package (database) or transform
+ True to reserve resources for writing summary information properties.
+ the package does not exist or could not be read
+ the package is an invalid format
+
+ The SummaryInfo object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Formats and writes the previously stored properties into the standard summary information stream.
+
+ The stream cannot be successfully written.
+
+ This method may only be called once after all the property values have been set. Properties may
+ still be read after the stream is written.
+
+
+
+ Gets or sets the Title summary information property.
+
+ The Title summary information property briefly describes the type of installer package. Phrases
+ such as "Installation Database" or "Transform" or "Patch" may be used for this property.
+
+
+
+ Gets or sets the Subject summary information property.
+
+ The Subject summary information property conveys to a file browser the product that can be installed using
+ the logic and data in this installer database. For example, the value of the summary property for
+ Microsoft Office 97 would be "Microsoft Office 97 Professional". This value is typically set from the
+ installer property ProductName.
+
+
+
+ Gets or sets the Author summary information property.
+
+ The Author summary information property conveys to a file browser the manufacturer of the installation
+ database. This value is typically set from the installer property Manufacturer.
+
+
+
+ Gets or sets the Keywords summary information property.
+
+ The Keywords summary information property is used by file browsers to hold keywords that permit the
+ database file to be found in a keyword search. The set of keywords typically includes "Installer" as
+ well as product-specific keywords, and may be localized.
+
+
+
+ Gets or sets the Comments summary information property.
+
+ The Comments summary information property conveys the general purpose of the installer database. By convention,
+ the value for this summary property is set to the following:
+
+ "This installer database contains the logic and data required to install <product name>."
+
+ where <product name> is the name of the product being installed. In general the value for this summary
+ property only changes in the product name, nothing else.
+
+
+
+ Gets or sets the Template summary information property.
+
+ The Template summary information propery indicates the platform and language versions supported by the database.
+
+ The syntax of the Template Summary property information is:
+ [platform property][,platform property][,...];[language id][,language id][,...]
+
+ For example, the following are all valid values for the Template Summary property:
+
+ Intel;1033
+ Intel64;1033
+ ;1033
+ ;
+ Intel ;1033,2046
+ Intel64;1033,2046
+ Intel;0
+
+
+ If this is a 64-bit Windows Installer, enter Intel64 in the Template summary information property. Note that an
+ installation package cannot have both the Intel and Intel64 properties set.
+
+ If the current platform does not match one of the platforms specified then the installer will not process the
+ package. Not specifying a platform implies that the package is platform-independent.
+
+ Entering 0 in the language ID field of the Template summary information property, or leaving this field empty,
+ indicates that the package is language neutral.
+
+ There are variations of this property depending on whether it is in a source installer database or a transform.
+
+ Source Installer Database - Only one language can be specified in a source installer database. Merge Modules are
+ the only packages that may have multiple languages. For more information, see Multiple Language Merge Modules.
+
+ Transform - In a transform file, only one language may be specified. The specified platform and language determine
+ whether a transform can be applied to a particular database. The platform property and the language property can
+ be left blank if no transform restriction relies on them to validate the transform.
+
+
+
+ Gets or sets the LastSavedBy summary information property.
+
+ The installer sets the Last Saved By summary information property to the value of the LogonUser property during
+ an administrative installation. The installer never uses this property and a user never needs to modify it.
+ Developers of a database editing tool may use this property to track the last person to modify the database.
+ This property should be left set to null in a final shipping database.
+
+ In a transform, this summary property contains the platform and language ID(s) that a database should have
+ after it has been transformed. The property specifies to what the Template should be set in the new database.
+
+
+
+ Gets or sets the RevisionNumber summary information property.
+
+ The Revision Number summary information property contains the package code for the installer package. The
+ package code is a unique identifier of the installer package.
+
+ The Revision Number summary information property of a patch package specifies the GUID patch code for
+ the patch. This is followed by a list of patch code GUIDs for obsolete patches that are removed when this
+ patch is applied. The patch codes are concatenated with no delimiters separating GUIDs in the list.
+
+ The Revision Number summary information property of a transform package lists the product code GUIDs
+ and version of the new and original products and the upgrade code GUID. The list is separated with
+ semicolons as follows.
+
+
+
+ Gets or sets the CreatingApp summary information property.
+
+ The CreatingApp summary information property conveys which application created the installer database.
+ In general the value for this summary property is the name of the software used to author this database.
+
+
+
+ Gets or sets the LastPrintTime summary information property.
+
+ The LastPrintTime summary information property can be set to the date and time during an administrative
+ installation to record when the administrative image was created. For non-administrative installations
+ this property is the same as the CreateTime summary information property.
+
+
+
+ Gets or sets the LastSaveTime summary information property.
+
+ The LastSaveTime summary information property conveys when the last time the installer database was
+ modified. Each time a user changes an installation the value for this summary property is updated to
+ the current system time/date at the time the installer database was saved. Initially the value for
+ this summary property is set to null to indicate that no changes have yet been made.
+
+
+
+ Gets or sets the CodePage summary information property.
+
+ The Codepage summary information property is the numeric value of the ANSI code page used for any
+ strings that are stored in the summary information. Note that this is not the same code page for
+ strings in the installation database. The Codepage summary information property is used to translate
+ the strings in the summary information into Unicode when calling the Unicode API functions. The
+ Codepage summary information property must be set before any string properties are set in the
+ summary information.
+
+
+
+ Gets or sets the PageCount summary information property.
+
+ For an installation package, the PageCount summary information property contains the minimum
+ installer version required. For Windows Installer version 1.0, this property must be set to the
+ integer 100. For 64-bit Windows Installer Packages, this property must be set to the integer 200.
+
+ For a transform package, the PageCount summary information property contains minimum installer
+ version required to process the transform. Set to the greater of the two PageCount summary information
+ property values belonging to the databases used to generate the transform.
+
+ The PageCount summary information property is set to null in patch packages.
+
+
+
+ Gets or sets the WordCount summary information property.
+
+ The WordCount summary information property indicates the type of source file image. If this property is
+ not present, it defaults to 0. Note that this property is stored in place of the standard Count property.
+
+ This property is a bit field. New bits may be added in the future. At present the following bits are
+ available:
+
+ Bit 0: 0 = long file names, 1 = short file names
+ Bit 1: 0 = source is uncompressed, 1 = source is compressed
+ Bit 2: 0 = source is original media, 1 = source is administrative installation
+ [MSI 4.0] Bit 3: 0 = elevated privileges can be required to install, 1 = elevated privileges are not required to install
+
+
+ These are combined to give the WordCount summary information property one of the following values
+ indicating a type of source file image:
+
+ 0 - Original source using long file names. Matches tree in Directory table.
+ 1 - Original source using short file names. Matches tree in Directory table.
+ 2 - Compressed source files using long file names. Matches cabinets and files in the Media table.
+ 3 - Compressed source files using short file names. Matches cabinets and files in the Media table.
+ 4 - Administrative image using long file names. Matches tree in Directory table.
+ 5 - Administrative image using short file names. Matches tree in Directory table.
+
+
+ Note that if the package is marked as compressed (bit 1 is set), the installer only installs files
+ located at the root of the source. In this case, even files marked as uncompressed in the File table must
+ be located at the root to be installed. To specify a source image that has both a cabinet file (compressed
+ files) and uncompressed files that match the tree in the Directory table, mark the package as uncompressed
+ by leaving bit 1 unset (value=0) in the WordCount summary information property and set
+ (value=16384) in the Attributes column of the File table
+ for each file in the cabinet.
+
+ For a patch package, the WordCount summary information property specifies the patch engine that was used
+ to create the patch files. The default value is 1 and indicates that MSPATCH was used to create the patch
+ A value of "2" means that the patch is using smaller, optimized, files available only with Windows Installer
+ version 1.2 or later. A patch with a WordCount of "2" fails immediately if used with a Windows Installer
+ version earlier than 1.2. A patch with a WordCount of "3" fails immediately if used with a Windows Installer
+ version earlier than 2.0.
+
+
+
+ Gets or sets the CharacterCount summary information property.
+
+ The CharacterCount summary information property is only used in transforms. This part of the summary
+ information stream is divided into two 16-bit words. The upper word contains the transform validation
+ flags. The lower word contains the transform error condition flags.
+
+
+
+ Gets or sets the Security summary information property.
+
+ The Security summary information property conveys whether the package should be opened as read-only. The database
+ editing tool should not modify a read-only enforced database and should issue a warning at attempts to modify a
+ read-only recommended database. The following values of this property are applicable to Windows Installer files:
+
+ 0 - no restriction
+ 2 - read only recommended
+ 4 - read only enforced
+
+
+ This property should be set to read-only recommended (2) for an installation database and to read-only
+ enforced (4) for a transform or patch.
+
+
+
+
+ Contains information about all the tables in a Windows Installer database.
+
+
+
+
+ Adds a new table to the database.
+
+ information about the table to be added
+ a table with the same name already exists in the database
+
+
+
+ Removes all tables (and all data) from the database.
+
+
+
+
+ Checks if the database contains a table with the given name.
+
+ case-sensitive name of the table to search for
+ True if the table exists, false otherwise.
+
+
+
+ Copies the table information from this collection into an array.
+
+ destination array to be filed
+ offset into the destination array where copying begins
+
+
+
+ Removes a table from the database.
+
+ case-sensitive name of the table to be removed
+ true if the table was removed, false if the table did not exist
+
+
+
+ Enumerates the tables in the database.
+
+
+
+
+ Gets the number of tables in the database.
+
+
+
+
+ Gets a boolean value indicating whether the collection is read-only.
+ A TableCollection is read-only when the database is read-only.
+
+ read-only status of the collection
+
+
+
+ Gets information about a given table.
+
+ case-sensitive name of the table
+ information about the requested table, or null if the table does not exist in the database
+
+
+
+ Defines a table in an installation database.
+
+
+
+
+ Creates a table definition.
+
+ Name of the table.
+ Columns in the table.
+ The primary keys of the table.
+
+
+
+ Gets a string representation of the table.
+
+ The name of the table.
+
+
+
+ Gets the name of the table.
+
+
+
+
+ Gets information about the columns in this table.
+
+
+ This property queries the database every time it is called,
+ to ensure the returned values are up-to-date. For best performance,
+ hold onto the returned collection if using it more than once.
+
+
+
+
+ Gets the names of the columns that are primary keys of the table.
+
+
+
+
+ Gets an SQL CREATE string that can be used to create the table.
+
+
+
+
+ Gets an SQL INSERT string that can be used insert a new record into the table.
+
+
+ The values are expressed as question-mark tokens, to be supplied by the record.
+
+
+
+
+ Gets an SQL SELECT string that can be used to select all columns of the table.
+
+
+ The columns are listed explicitly in the SELECT string, as opposed to using "SELECT *".
+
+
+
+
+ Contains specific information about an error encountered by the ,
+ , or methods of the
+ class.
+
+
+
+
+ Gets the type of validation error encountered.
+
+
+
+
+ Gets the column containing the error, or null if the error applies to the whole row.
+
+
+
+
+ A View represents a result set obtained when processing a query using the
+ method of a
+ . Before any data can be transferred,
+ the query must be executed using the method, passing to
+ it all replaceable parameters designated within the SQL query string.
+
+
+
+
+ Executes a SQL View query and supplies any required parameters. The query uses the
+ question mark token to represent parameters as described in SQL Syntax. The values of
+ these parameters are passed in as the corresponding fields of a parameter record.
+
+ Optional Record that supplies the parameters. This
+ Record contains values to replace the parameter tokens in the SQL query.
+ the View could not be executed
+ the View handle is invalid
+
+
+
+
+ Fetches the next sequential record from the view, or null if there are no more records.
+
+ the View is not in an active state
+ the View handle is invalid
+
+ The Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+
+
+
+
+ Updates a fetched Record.
+
+ specifies the modify mode
+ the Record to modify
+ the modification failed,
+ or a validation was requested and the data did not pass
+ the View handle is invalid
+
+ You can update or delete a record immediately after inserting, or seeking provided you
+ have NOT modified the 0th field of the inserted or sought record.
+
+ To execute any SQL statement, a View must be created. However, a View that does not
+ create a result set, such as CREATE TABLE, or INSERT INTO, cannot be used with any of
+ the Modify methods to update tables though the view.
+
+ You cannot fetch a record containing binary data from one database and then use
+ that record to insert the data into another database. To move binary data from one database
+ to another, you should export the data to a file and then import it into the new database
+ using a query and the . This ensures that each database has
+ its own copy of the binary data.
+
+ Note that custom actions can only add, modify, or remove temporary rows, columns,
+ or tables from a database. Custom actions cannot modify persistent data in a database,
+ such as data that is a part of the database stored on disk.
+
+
+
+
+ Updates the View with new data from the Record.
+
+ the new data
+ the update failed
+ the View handle is invalid
+
+ Only non-primary keys can be updated. The Record must have been obtained by calling
+ . Fails with a deleted Record. Works only with read-write Records.
+
+
+
+
+ Updates or inserts a Record into the View.
+
+ the Record to be assigned
+ the assignment failed
+ the View handle is invalid
+
+ Updates record if the primary keys match an existing row and inserts if they do not match.
+ Fails with a read-only database. This method cannot be used with a View containing joins.
+
+
+
+
+ Updates or deletes and inserts a Record into the View.
+
+ the Record to be replaced
+ the replacement failed
+ the View handle is invalid
+
+ The Record must have been obtained by calling . Updates record if the
+ primary keys are unchanged. Deletes old row and inserts new if primary keys have changed.
+ Fails with a read-only database. This method cannot be used with a View containing joins.
+
+
+
+
+ Deletes a Record from the View.
+
+ the Record to be deleted
+ the deletion failed
+ the View handle is invalid
+
+ The Record must have been obtained by calling . Fails if the row has been
+ deleted. Works only with read-write records. This method cannot be used with a View containing joins.
+
+
+
+
+ Inserts a Record into the View. The inserted data is not persistent.
+
+ the Record to be inserted
+ the insertion failed
+ the View handle is invalid
+
+ Fails if a row with the same primary key exists. Works only with read-write records.
+ This method cannot be used with a View containing joins.
+
+
+
+
+ Refreshes the information in the supplied record without changing the position
+ in the result set and without affecting subsequent fetch operations.
+
+ the Record to be filled with the result of the seek
+ the seek failed
+ the View handle is invalid
+
+ After seeking, the Record may then be used for subsequent Update, Delete, and Refresh
+ operations. All primary key columns of the table must be in the query and the Record must
+ have at least as many fields as the query. Seek cannot be used with multi-table queries.
+ This method cannot be used with a View containing joins.
+
+
+
+
+ Inserts or validates a record.
+
+ the Record to be merged
+ true if the record was inserted or validated, false if there is an existing
+ record with the same primary keys that is not identical
+ the merge failed (for a reason other than invalid data)
+ the View handle is invalid
+
+ Works only with read-write records. This method cannot be used with a
+ View containing joins.
+
+
+
+
+ Validates a record, returning information about any errors.
+
+ the Record to be validated
+ null if the record was validated; if there is an existing record with
+ the same primary keys that has conflicting data then error information is returned
+ the validation failed (for a reason other than invalid data)
+ the View handle is invalid
+
+ The Record must have been obtained by calling .
+ Works with read-write and read-only records. This method cannot be used
+ with a View containing joins.
+
+
+
+
+ Validates a new record, returning information about any errors.
+
+ the Record to be validated
+ null if the record was validated; if there is an existing
+ record with the same primary keys then error information is returned
+ the validation failed (for a reason other than invalid data)
+ the View handle is invalid
+
+ Checks for duplicate keys. The Record must have been obtained by
+ calling . Works with read-write and read-only records.
+ This method cannot be used with a View containing joins.
+
+
+
+
+ Validates fields of a fetched or new record, returning information about any errors.
+ Can validate one or more fields of an incomplete record.
+
+ the Record to be validated
+ null if the record was validated; if there is an existing record with
+ the same primary keys that has conflicting data then error information is returned
+ the validation failed (for a reason other than invalid data)
+ the View handle is invalid
+
+ Works with read-write and read-only records. This method cannot be used with
+ a View containing joins.
+
+
+
+
+ Validates a record that will be deleted later, returning information about any errors.
+
+ the Record to be validated
+ null if the record is safe to delete; if another row refers to
+ the primary keys of this row then error information is returned
+ the validation failed (for a reason other than invalid data)
+ the View handle is invalid
+
+ Validation does not check for the existence of the primary keys of this row in properties
+ or strings. Does not check if a column is a foreign key to multiple tables. Works with
+ read-write and read-only records. This method cannot be used with a View containing joins.
+
+
+
+
+ Enumerates over the Records retrieved by the View.
+
+ An enumerator of Record objects.
+ The View was not d before attempting the enumeration.
+
+ Each Record object should be d after use.
+ It is best that the handle be closed manually as soon as it is no longer
+ needed, as leaving lots of unused handles open can degrade performance.
+ However, note that it is not necessary to complete the enumeration just
+ for the purpose of closing handles, because Records are fetched lazily
+ on each step of the enumeration.
+
+
+
+
+ Gets the Database on which this View was opened.
+
+
+
+
+ Gets the SQL query string used to open this View.
+
+
+
+
+ Gets the set of tables that were included in the SQL query for this View.
+
+
+
+
+ Gets the set of columns that were included in the query for this View,
+ or null if this view is not a SELECT query.
+
+ the View is not in an active state
+ the View handle is invalid
+