-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to Create a Win32 Application from a intunewin file which is created from .exe #173
Comments
I can see that detectionValue is not getting set . Can you please show me , how to set it , as it is not getting set here , it is creating issue while creating win32 app Name : @odata.type Name : operator Name : detectionValue Name : path Name : fileOrFolderName Name : check32BitOn64System Name : detectionType PS C:\WINDOWS\system32> |
what detection do you want to use file or registry? |
anyone is fine , either registry or file . I have tried with both and got same error . this value is empty |
your registry detection have a detectionValie, you file detection doesn't have it, cause you have exist, so it's always null. So that should be ok. but you don't have the install and uninstall commands set which are required. if you package a msi they gets populated themselfs. |
@AlkHacNar Could you please help to update parameter that i need to pass for install and uninstall in |
something like that. you don't need to use variables there, but I like it |
I am trying to create a win32app from a intunefile . The intunefile got created from a .exe and not from a MSI . I am getting error while deploying the win32 app .
Here is how I am creating an detection rule
Detection Rule
$DetectionRule = New-IntuneWin32AppDetectionRuleRegistry -StringComparison -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\xxxxxx\yyyy\xx" -ValueName "Version" -StringComparisonOperator "equal" -StringComparisonValue "0.0.0110"
Requirement Rule
$RequirementRule = New-IntuneWin32AppRequirementRule -Architecture "x64" -MinimumSupportedWindowsRelease "W10_1909"
Return Codes
$ReturnCode = @{
0 = "Success"
1707 = "Success"
3010 = "Soft reboot"
1641 = "Hard reboot"
1618 = "Retry"
}
In below step I am creating Win332 app
Add Win32 Application
$Win32App = Add-IntuneWin32App -FilePath "C:\Users\some.user\Desktop\target_Intunefile\installer.intunewin"
-DisplayName "xxxxxx"
-Description "yyyyy"
-Publisher "xxxxxxxxxx"
-InstallExperience "system"
-RestartBehavior "suppress"
-DetectionRule $DetectionRule
-RequirementRule $RequirementRule
-ReturnCode $ReturnCode `
-Verbose
Here is my error while creating a win32 app
WARNING: An error occurred while creating the Win32 application. Error message: Cannot convert value "" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0.
The text was updated successfully, but these errors were encountered: