64 bit or 32 bit if then

I am looking to find a way to do an if then in the script to select the proper registry keys to import. Is this the best route or should I just create 2 separate packages and deal with it that way?

You mean if 32 bit do this, else do something different?

If you are talking about using SCCM, you can have 2 deployment types, one for 32bit and one for 64bit. If you are talking about having the script decide which machines you are on and then import a different file, you would have to check for that in your installation section of the script. Something like

<code>
if([IntPtr]::Size -eq 8)
{
    #64bit
}
else
{
    #32bit
}
</code>