Automate Tasks with IPowerShell: Utilizing Attached Script Files
Automate Tasks with IPowerShell: Utilizing Attached Script Files
Table of Contents
- Introduction
- Registration
- Using Advanced Installer
- GUI
- Working with Projects
- Installer Project
- Patch Project
- Merge Module Project
- Updates Configuration Project
- Windows Store App Project
- Modification Package Project
- Optional Package Project
- Windows Mobile CAB Projects
- Visual Studio Extension Project
- Software Installer Wizards - Advanced Installer
- Visual Studio integration
- Alternative to AdminStudio/Wise
- Replace Wise
- Migrating from Visual Studio Installer
- Keyboard Shortcuts
- Shell Integration
- Command Line
- Advanced Installer PowerShell Automation Interfaces
* IAdvancedInstaller
* IAdvinstProject
* IProductDetails
* IFolder
* ILaunchConditionsComponent
* IFilesComponent
* IIniFilesComponent
* IShortcut
* ITempFile
* IXmlFile
* IDirectoryMember
* IRegistryComponent
* IInstallParameters
* IBuildComponent
* ITextFileUpdatesComponent
* ITextUpdateFile
* ITextUpdateAppendOrCreate
* ITextUpdateReplace
* IFileAssociations
* IDefaultProgramFA
* IExtensionFA
* IProgIdFA
* IVerbFA
* IEnvironment
* IEnvironmentVariable
* IProductCode
* IUpgradeCode
* IMergeModulesComponent
* IMergeModule
* IDigitalSignature
* ICustomActionsComponent
* ICustomAction
* ICustomActionSequence
* IAttachedFileCustomAction
* IAttachedScriptFileCustomAction
* IDotNetCustomAction
* IExeWithWorkingDirectoryCustomAction
* IFileCustomAction
* IInstalledFileCustomAction
* IInstalledScriptFileCustomAction
* IPowershellScriptFile
* IPowershellAttachedScriptFile
* IInstallCertificate
* IUninstallCertificate
* IFileFromPropertyCustomAction
* IScriptFileFromPropertyCustomAction
* IAttachedDllFunctionCallCustomAction
* IInstalledDllFunctionCallCustomAction
* ITranslationsComponent
* IDriversComponent
* ISearch
* IServices
* IOrganizationComponent
* IComComponent
* IRemoveFilesComponent
* IRemoveFile
* IUpdatesProject
* IUpdaterComponent
* IPatchProject
* IPropertyComponent
* IProperty
* IPathVariable
* IMsixComponent
* IMsixDependencies
* IMsixDriverDependency
* IMsixDriverConstraint
* IMsixExternalDependency
* IMsixPackageDependency
- Features and Functionality
- Tutorials
- Samples
- How-tos
- FAQs
- Windows Installer
- Deployment Technologies
- IT Pro
- MSIX
- Video Tutorials
- Advanced Installer Blog
- Table of Contents
Disclaimer: This post includes affiliate links
If you click on a link and make a purchase, I may receive a commission at no extra cost to you.
IPowershellAttachedScriptFile
Declaration
IPowershellAttachedScriptFile : ICustomAction
Overview
This interface facilitates editing custom action that allows launching an attached Powershell script file into execution.
Properties
String ScriptFileSource - Gets or sets the source path to the attached script file.
Bool Is32Bit - Gets or sets the property of the custom action to run the 32-bit PowerShell executable. If Is64Bit value is also “true” then runs the Operating System bitness PowerShell executable (32-bit on x86 operating systems, 64-bit on x64).
Bool Is64Bit - Gets or sets the property of the custom action to run the 32-bit PowerShell executable. If Is32Bit value is also “true” then runs the Operating System bitness PowerShell executable (32-bit on x86 operating systems, 64-bit on x64).
Examples
$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$custAct = $project.CustomActionsComponent.NewPowershellAttachedScriptFile(“D:\my_script.ps1”)
Set “Is32Bit” and “Is64Bit” properties to true to auto detect OS bitness PowerShell executable
$custAct.Is32Bit = $true
$custAct.Is64Bit = $true
Copy
See also
Did you find this page useful?
Please give it a rating:
Thanks!
Report a problem on this page
Information is incorrect or missing
Information is unclear or confusing
Something else
Can you tell us what’s wrong?
Send message
Also read:
- [Updated] 2024 Approved Action-Adventure Hits The Best of the Best (Top 10)
- [Updated] In 2024, '3DR' One Person’s Guide to a Futuristic Tech
- 1. 'Different Writing Styles: A Comprehensive Guide'
- 1. Top CamStudio Substitutes: Enhancing Your Recording Experience
- 2024 Approved Premier Video Cutting Software Recommendations for Windows Users
- 2024 Approved Uncovering If ITop Justifies Its Market Presence
- Best Sound Format Converter Software Compatible with Windows 10
- Comprehensive Guide to Successful SQL Server Reporting Services Setup
- Comprehensive Review and Overview of Du Recorder for 2024
- Effortless Navigation: Top Tips for Optimizing Your Primary Web Interface
- Enhancing IATTAINED DLL Function Calls with Custom Actions
- In 2024, Best Anti Tracker Software For Nubia Z50 Ultra | Dr.fone
- In 2024, Troubleshooting Error Connecting to the Apple ID Server From Apple iPhone 8 Plus
- Mastering Domain Safelisting on the MacOS Mail Application: A Step-by-Step Guide
- New Translate Any Hindi Video Into English With AI
- Optimal Strategies for IRS Validation in SEO Tactics
- Step-by-Step Tutorial on Customizing Event Map Interfaces for Seamless Workshops
- Title: Automate Tasks with IPowerShell: Utilizing Attached Script Files
- Author: Kenneth
- Created at : 2024-10-10 02:44:22
- Updated at : 2024-10-11 02:38:15
- Link: https://fox-sys.techidaily.com/automate-tasks-with-ipowershell-utilizing-attached-script-files/
- License: This work is licensed under CC BY-NC-SA 4.0.