Hello Community,
I encountered a strange error in Install Wizard 2024 – using it to create installation for Project where at least one drawing template file should be copied into Template build destination, it crashes with “System.IndexOutOfRangeException: Index was outside the bounds of the array.” Error message.
Anybody else faced that?
Best regards, Miro
Miro,
We have not run into that error. Where are you adding the file? Does it have a DGN extension? If you remove the file does the error go away? If you downloaded the file prior to adding it you may want to check and see if it is being blocked by Microsoft.
Shawn Golden
Microvellum
Hello, yes that is strange. This is my workflow:
1: Specifying simple drawing template in „Make Wizzard‘s Your modules“ tab with Build destination „Template“:
2: Build works and selected Template is placed where it should be.
3: Start “Install wizard” to build installation of created Build. Under “Drawing templates” are only DGN files, but I do not select any of them – in matter of fact, it makes no difference if any of settings changes. After starting build process, this error is thrown:
It happened on three different projects and two language builds, every time.
Best regards, Miro
Miro,
We typically add Templates to the “AutoCAD OEM CD” path in the Installer Wizard. Like for OEM 2024 we would drop them in a folder here: C:\Autodesk\ACAD2024ENUS\x64\aoem\PF\Root\UserDataCache\Template
Once they are in there then they will show up in the Installer Wizard under “Drawing Templates” and then you just add them like you see in the picture here:
Sometimes after adding them to the CD location you have to restart the Installer Wizard but they should show up and then when you build they should automatically be put in the Default Template folder. You might try that instead of the through modules.
Shawn
Microvellum
Shawn
I tried what you said for OEM 2025 but it doesn’t work.
Here the steps I made:
-
I put my dwt templates in A (the folder of the AutoCAD OEM CD)
A=.\Autodesk_AutoCAD_OEM_2025_Italian_Win_64bit_dlm\x64\aoem\PF\Root\UserDataCache\Template\ -
I selected they in the Install Wizard as you said
-
Build the installer
-
My dwt templates are present in B (the folder produced with the Install Wizard, ‘cpik’ is the name of my OEM App)
B=.\cpik\x64\cpik\it-IT\Aoem\PF\Root\UserDataCache\Template\ -
In install my OEM App. After the install my dwt templates are not present in
C=c:\Program Files\IeS<AppName>-IT 2025-IT\userdatacache\Template
And the userdatacache folder is not visible in Explorer, I have to type the name explicitly to enter in it -
At the first run, the folder D is created
D=c:\Users<User Name>\AppData\Local\IeS<AppName>-IT 2025-IT\R29\ita\Template
And it doesn’t contains my dwt templates. -
Of course after the install, if I copy my dwt templates manually in the C folder, after the first run they are copied in D folder.
Would you be able to help me in any way?
Thank you
Gaetano.
Gaetano,
Sorry, I could not reply sooner. Strange that it is not working. Were you able to get this working in 2024? We have yet to start 2025 for our application so I cannot answer for that one but we should start up on it in a month or so. Let me take a look at things on my side and see if I can get you an answer.
Shawn Golden
Microvellum
Shawn,
We were in a hurry therefore we found an alternative method: we copy the templates at application startup, at runtime.
Thanks anyway for your reply and if you have any news I will be glad to hear about it.
I completely understand. We have to come up with alternate solutions ourselves at times. Thanks for letting us know.
Shawn Golden
Microvellum
This issue was reported and fixed a couple of releases back.
It is a confirmed regression in release 2024+2025 and a change request has been logged to have it corrected in next release of AutoCAD OEM.
ACD-45388
CLONE - AOEM: System.IndexOutOfRangeException: Index was outside the bounds of the array.