Skip to content
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

".ctor" file not found! #393

Open
NaseerAkbari opened this issue Apr 10, 2024 · 2 comments
Open

".ctor" file not found! #393

NaseerAkbari opened this issue Apr 10, 2024 · 2 comments

Comments

@NaseerAkbari
Copy link

the last command shows an error: New-WindowsOnlineImage -ConfigFilePath $ConfigFilePath
translated to English:

New-Object : Exception when calling ".ctor" with 1 argument(s):
"The specified file could not be found."
In C:\Users\nsrakbr\Desktop\windows-imaging-tools\windows-openstack-imaging-tools\WinImageBuilder.psm1:121 chars:13
+
return (New-Object WIMInterop.WimFile -ArgumentList $WimFilePath)
+
+ CategoryInfo
InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands

guys, i am working on this custom image of windows since days, but i cant go further. can anyone help please?

image

@hoppla20
Copy link
Contributor

I ran into the same issue today. My problem was that I didn't mount the Windows ISO. After mounting the ISO (e.g. under E:\), you also have to correctly set the config wim_file_path to the install.wim inside the mounted ISO:

[DEFAULT]
...
wim_file_path=E:\sources\install.wim
...

@Azziii
Copy link

Azziii commented Nov 8, 2024

Check that the [DEFAULT] section for wim_file_path is defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants